public static function ElementInterface::create in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 28 - Contains \Drupal\config_translation\FormElement\ElementInterface.
Class
- ElementInterface
- Provides an interface for configuration translation form elements.
Namespace
Drupal\config_translation\FormElementCode
public static function create(TypedDataInterface $schema);