Element
class Element implements TrustedCallbackInterface (View source)
Defines a service for Text Editor's render elements.
Properties
| protected PluginManagerInterface | $pluginManager | The Text Editor plugin manager service. |
Methods
static string[]
trustedCallbacks()
Lists the trusted callbacks provided by the implementing class.
preRenderTextFormat(array $element)
Additional #pre_render callback for 'text_format' elements.
Details
__construct(PluginManagerInterface $plugin_manager)
Constructs a new Element object.
static string[]
trustedCallbacks()
Lists the trusted callbacks provided by the implementing class.
Trusted callbacks are public methods on the implementing class and can be invoked via \Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback().
preRenderTextFormat(array $element)
Additional #pre_render callback for 'text_format' elements.