function ElementInterface::create
Same name in other branches
- 8.9.x core/modules/config_translation/src/FormElement/ElementInterface.php \Drupal\config_translation\FormElement\ElementInterface::create()
- 10 core/modules/config_translation/src/FormElement/ElementInterface.php \Drupal\config_translation\FormElement\ElementInterface::create()
- 11.x 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 - ListElement::create in core/
modules/ config_translation/ src/ FormElement/ ListElement.php
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\FormElementCode
public static function create(TypedDataInterface $schema);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.