function FormElementBase::__construct
Same name and namespace in other branches
- 11.x core/modules/config_translation/src/FormElement/FormElementBase.php \Drupal\config_translation\FormElement\FormElementBase::__construct()
- 10 core/modules/config_translation/src/FormElement/FormElementBase.php \Drupal\config_translation\FormElement\FormElementBase::__construct()
- 9 core/modules/config_translation/src/FormElement/FormElementBase.php \Drupal\config_translation\FormElement\FormElementBase::__construct()
- 8.9.x core/modules/config_translation/src/FormElement/FormElementBase.php \Drupal\config_translation\FormElement\FormElementBase::__construct()
Constructs a FormElementBase.
Parameters
\Drupal\Core\TypedData\TypedDataInterface $element: The schema element this form element is for.
File
-
core/
modules/ config_translation/ src/ FormElement/ FormElementBase.php, line 32
Class
- FormElementBase
- Provides a common base class for form elements.
Namespace
Drupal\config_translation\FormElementCode
public function __construct(protected TypedDataInterface $element) {
$this->definition = $this->element
->getDataDefinition();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.