Simple function call in blueprint does not return anything

#1

I have a blueprint with a form for a template in my plugin, and I would like to add a display field that shows a remote image on the Admin page. This image’s html tag is assembled by a plugin function. However, I can’t even return a single word.

The blueprint looks like this:

title: Cloudinary
'@extends':
    type: default
    context: blueprints://pages

form:
  fields:
    tabs:
      fields:

        cloudinary:
          type: tab
          title: Cloudinary
          fields:
            header.public_id:
              type: text
              label: PLUGIN_CLOUDINARY.PUBLIC_ID
              validate:
                type: required
            header.options:
              type: array
              label: PLUGIN_CLOUDINARY.OPTIONS
            cl_file:
              label: Thumbnail image
              type: display
              #content: test
              data-content@: '\Grav\Plugin\Cloudinary::getClFile'

The function looks like this:

class CloudinaryPlugin extends Plugin
{
/**
 * get Cloudinary file for admin
 */
    public static function getClFile()
    {
        return "something";
    }
}

Shouldn’t this output a simple “something” in the form? What am I doing wrong? Really grateful for any pointers!

#2

i will use classname

cl_file:
  label: Thumbnail image
  type: display
  #content: test
  data-content@: '\Grav\Plugin\CloudinaryPlugin::getClFile'
#3

That was IT thank youuuuuuuu :heart_eyes: