function ListElement::__construct

Same name in other branches
  1. 9 core/modules/config_translation/src/FormElement/ListElement.php \Drupal\config_translation\FormElement\ListElement::__construct()
  2. 8.9.x core/modules/config_translation/src/FormElement/ListElement.php \Drupal\config_translation\FormElement\ListElement::__construct()
  3. 11.x 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\FormElement

Code

public function __construct(TraversableTypedDataInterface $element) {
    $this->element = $element;
}

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