function Editor::__construct

Same name in this branch
  1. 10 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::__construct()
Same name in other branches
  1. 9 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::__construct()
  2. 9 core/modules/editor/src/Plugin/InPlaceEditor/Editor.php \Drupal\editor\Plugin\InPlaceEditor\Editor::__construct()
  3. 8.9.x core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::__construct()
  4. 11.x core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::__construct()
  5. 11.x core/modules/editor/src/Attribute/Editor.php \Drupal\editor\Attribute\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\Attribute

Code

public function __construct(string $id, TranslatableMarkup $label, bool $supports_content_filtering, bool $supports_inline_editing, bool $is_xss_safe, array $supported_element_types, ?string $deriver = NULL) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.