function Element::__construct
Same name and namespace in other branches
- 11.x core/modules/editor/src/Element.php \Drupal\editor\Element::__construct()
- 10 core/modules/editor/src/Element.php \Drupal\editor\Element::__construct()
- 9 core/modules/editor/src/Element.php \Drupal\editor\Element::__construct()
- 8.9.x core/modules/editor/src/Element.php \Drupal\editor\Element::__construct()
File
-
core/
modules/ editor/ src/ Element.php, line 20
Class
- Element
- Defines a service for Text Editor's render elements.
Namespace
Drupal\editorCode
public function __construct(protected PluginManagerInterface $pluginManager, protected ?ModuleHandlerInterface $moduleHandler = NULL) {
if (!$moduleHandler) {
@trigger_error('Calling ' . __METHOD__ . '() without the $moduleHandler argument is deprecated in drupal:11.4.0 and it will be required in drupal:12.0.0. See https://www.drupal.org/node/3568146', E_USER_DEPRECATED);
$this->moduleHandler = \Drupal::moduleHandler();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.