W3cubDocs

/Drupal 8

protected function ArrayElement::buildDataDefinition

protected ArrayElement::buildDataDefinition($definition, $value, $key)

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

File

core/lib/Drupal/Core/Config/Schema/ArrayElement.php, line 150

Class

ArrayElement
Defines a generic configuration element that contains multiple properties.

Namespace

Drupal\Core\Config\Schema

Code

protected function buildDataDefinition($definition, $value, $key) {
  return $this->getTypedDataManager()->buildDataDefinition($definition, $value, $key, $this);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Schema!ArrayElement.php/function/ArrayElement::buildDataDefinition/8.1.x