function Element::__construct

Same name in other branches
  1. 9 core/modules/editor/src/Element.php \Drupal\editor\Element::__construct()
  2. 8.9.x core/modules/editor/src/Element.php \Drupal\editor\Element::__construct()
  3. 11.x core/modules/editor/src/Element.php \Drupal\editor\Element::__construct()

Constructs a new Element object.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $plugin_manager: The Text Editor plugin manager service.

File

core/modules/editor/src/Element.php, line 29

Class

Element
Defines a service for Text Editor's render elements.

Namespace

Drupal\editor

Code

public function __construct(PluginManagerInterface $plugin_manager) {
    $this->pluginManager = $plugin_manager;
}

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