public function ListElement::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config_translation/src/FormElement/ListElement.php \Drupal\config_translation\FormElement\ListElement::__construct()
- 9 core/modules/config_translation/src/FormElement/ListElement.php \Drupal\config_translation\FormElement\ListElement::__construct()
Constructs a ListElement.
Parameters
\Drupal\Core\TypedData\TraversableTypedDataInterface $element: The schema element this form element is for.
File
- core/
modules/ config_translation/ src/ FormElement/ ListElement.php, line 34
Class
- ListElement
- Defines the list element for the configuration translation interface.
Namespace
Drupal\config_translation\FormElementCode
public function __construct(TraversableTypedDataInterface $element) {
$this->element = $element;
}