function RenderElementBase::__construct
Constructs a new render element object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Render\ElementInfoManagerInterface|null $elementInfoManager: The element info manager.
6 calls to RenderElementBase::__construct()
- BreakLockLink::__construct in core/
lib/ Drupal/ Core/ TempStore/ Element/ BreakLockLink.php - Constructs a new BreakLockLink.
- Deprecated::__construct in core/
modules/ system/ tests/ modules/ element_info_test/ src/ Element/ Deprecated.php - Constructs a new render element object.
- Fieldgroup::__construct in core/
lib/ Drupal/ Core/ Render/ Element/ Fieldgroup.php - Constructs a new render element object.
- FormElement::__construct in core/
lib/ Drupal/ Core/ Render/ Element/ FormElement.php - Constructs a new render element object.
- LayoutBuilder::__construct in core/
modules/ layout_builder/ src/ Element/ LayoutBuilder.php - Constructs a new LayoutBuilder.
6 methods override RenderElementBase::__construct()
- BreakLockLink::__construct in core/
lib/ Drupal/ Core/ TempStore/ Element/ BreakLockLink.php - Constructs a new BreakLockLink.
- Deprecated::__construct in core/
modules/ system/ tests/ modules/ element_info_test/ src/ Element/ Deprecated.php - Constructs a new render element object.
- Fieldgroup::__construct in core/
lib/ Drupal/ Core/ Render/ Element/ Fieldgroup.php - Constructs a new render element object.
- FormElement::__construct in core/
lib/ Drupal/ Core/ Render/ Element/ FormElement.php - Constructs a new render element object.
- LayoutBuilder::__construct in core/
modules/ layout_builder/ src/ Element/ LayoutBuilder.php - Constructs a new LayoutBuilder.
File
-
core/
lib/ Drupal/ Core/ Render/ Element/ RenderElementBase.php, line 170
Class
- RenderElementBase
- Provides a base class for render element plugins.
Namespace
Drupal\Core\Render\ElementCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, protected ?ElementInfoManagerInterface $elementInfoManager = NULL) {
if (!$this->elementInfoManager) {
@trigger_error('Calling ' . __METHOD__ . '() without the $elementInfoManager argument is deprecated in drupal:11.3.0 and it will be required in drupal:12.0.0. See https://www.drupal.org/node/3526683', E_USER_DEPRECATED);
$this->elementInfoManager = \Drupal::service('plugin.manager.element_info');
}
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.