function ElementInterface::create

Same name in other branches
  1. 9 core/modules/config_translation/src/FormElement/ElementInterface.php \Drupal\config_translation\FormElement\ElementInterface::create()
  2. 8.9.x core/modules/config_translation/src/FormElement/ElementInterface.php \Drupal\config_translation\FormElement\ElementInterface::create()
  3. 10 core/modules/config_translation/src/FormElement/ElementInterface.php \Drupal\config_translation\FormElement\ElementInterface::create()

Creates a form element instance from a schema definition.

Parameters

\Drupal\Core\TypedData\TypedDataInterface $schema: The configuration schema.

Return value

static

2 methods override ElementInterface::create()
FormElementBase::create in core/modules/config_translation/src/FormElement/FormElementBase.php
Creates a form element instance from a schema definition.
ListElement::create in core/modules/config_translation/src/FormElement/ListElement.php
Creates a form element instance from a schema definition.

File

core/modules/config_translation/src/FormElement/ElementInterface.php, line 23

Class

ElementInterface
Provides an interface for configuration translation form elements.

Namespace

Drupal\config_translation\FormElement

Code

public static function create(TypedDataInterface $schema);

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