protected function ArrayElement::createElement in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/Schema/ArrayElement.php \Drupal\Core\Config\Schema\ArrayElement::createElement()
Creates a contained typed configuration object.
Parameters
\Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition object.
mixed $value: (optional) The data value. If set, it has to match one of the supported data type format as documented for the data type classes.
string $key: The key of the contained element.
Return value
\Drupal\Core\TypedData\TypedDataInterface
1 call to ArrayElement::createElement()
- ArrayElement::parse in core/
lib/ Drupal/ Core/ Config/ Schema/ ArrayElement.php - Builds an array of contained elements.
File
- core/
lib/ Drupal/ Core/ Config/ Schema/ ArrayElement.php, line 137 - Contains \Drupal\Core\Config\Schema\ArrayElement.
Class
- ArrayElement
- Defines a generic configuration element that contains multiple properties.
Namespace
Drupal\Core\Config\SchemaCode
protected function createElement($definition, $value, $key) {
return $this
->getTypedDataManager()
->create($definition, $value, $key, $this);
}