protected function ArrayElement::buildDataDefinition in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/Schema/ArrayElement.php \Drupal\Core\Config\Schema\ArrayElement::buildDataDefinition()
- 9 core/lib/Drupal/Core/Config/Schema/ArrayElement.php \Drupal\Core\Config\Schema\ArrayElement::buildDataDefinition()
Creates a new data definition object from a type definition array and actual configuration data.
Parameters
array $definition: The base type definition array, for which a data definition should be created.
$value: The value of the configuration element.
string $key: The key of the contained element.
Return value
\Drupal\Core\TypedData\DataDefinitionInterface
2 calls to ArrayElement::buildDataDefinition()
- Mapping::getElementDefinition in core/
lib/ Drupal/ Core/ Config/ Schema/ Mapping.php - Gets data definition object for contained element.
- Sequence::getElementDefinition in core/
lib/ Drupal/ Core/ Config/ Schema/ Sequence.php - Gets data definition object for contained element.
File
- core/
lib/ Drupal/ Core/ Config/ Schema/ ArrayElement.php, line 153
Class
- ArrayElement
- Defines a generic configuration element that contains multiple properties.
Namespace
Drupal\Core\Config\SchemaCode
protected function buildDataDefinition($definition, $value, $key) {
return $this
->getTypedDataManager()
->buildDataDefinition($definition, $value, $key, $this);
}