protected ArrayElement::createElement($definition, $value, $key)
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
File
- core/lib/Drupal/Core/Config/Schema/ArrayElement.php, line 132
Class
- ArrayElement
- Defines a generic configuration element that contains multiple properties.
Namespace
Drupal\Core\Config\Schema
Code
protected function createElement($definition, $value, $key) { return $this->getTypedDataManager()->create($definition, $value, $key, $this); }
Please login to continue.