FormElementBase::create

public static FormElementBase::create(TypedDataInterface $schema)

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 46

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);
}
doc_Drupal
2016-10-29 09:15:37
Comments
Leave a Comment

Please login to continue.