function Editor::__construct
Constructs an Editor object.
Parameters
string $id: The plugin ID.
\Drupal\Core\StringTranslation\TranslatableMarkup $label: The human-readable name of the text editor, translated
bool $supports_content_filtering: Whether the editor supports "allowed content only" filtering.
bool $supports_inline_editing: Whether the editor supports the inline editing provided by the Edit module.
bool $is_xss_safe: Whether this text editor is not vulnerable to XSS attacks.
string[] $supported_element_types: On which form element #types this text editor is capable of working.
class-string|null $deriver: (optional) The deriver class.
Overrides Plugin::__construct
File
-
core/
modules/ editor/ src/ Attribute/ Editor.php, line 43
Class
- Editor
- Defines an Editor attribute object.
Namespace
Drupal\editor\AttributeCode
public function __construct(public readonly string $id, public readonly TranslatableMarkup $label, public readonly bool $supports_content_filtering, public readonly bool $supports_inline_editing, public readonly bool $is_xss_safe, public readonly array $supported_element_types, public readonly ?string $deriver = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.