FormElementBase::__construct

public FormElementBase::__construct(TypedDataInterface $element)

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 38

Class

FormElementBase
Provides a common base class for form elements.

Namespace

Drupal\config_translation\FormElement

Code

public function __construct(TypedDataInterface $element) {
  $this->element = $element;
  $this->definition = $element->getDataDefinition();
}
doc_Drupal
2016-10-29 09:15:38
Comments
Leave a Comment

Please login to continue.