You are here

public static function FormElementBase::create in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config_translation/src/FormElement/FormElementBase.php \Drupal\config_translation\FormElement\FormElementBase::create()

Creates a form element instance from a schema definition.

Parameters

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

Return value

static

Overrides ElementInterface::create

File

core/modules/config_translation/src/FormElement/FormElementBase.php, line 51
Contains \Drupal\config_translation\FormElement\FormElementBase.

Class

FormElementBase
Provides a common base class for form elements.

Namespace

Drupal\config_translation\FormElement

Code

public static function create(TypedDataInterface $schema) {
  return new static($schema);
}