function ArrayElement::buildDataDefinition

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/Schema/ArrayElement.php \Drupal\Core\Config\Schema\ArrayElement::buildDataDefinition()
  2. 8.9.x core/lib/Drupal/Core/Config/Schema/ArrayElement.php \Drupal\Core\Config\Schema\ArrayElement::buildDataDefinition()
  3. 10 core/lib/Drupal/Core/Config/Schema/ArrayElement.php \Drupal\Core\Config\Schema\ArrayElement::buildDataDefinition()

Creates a new data definition object from an array and configuration.

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
Sequence::getElementDefinition in core/lib/Drupal/Core/Config/Schema/Sequence.php

File

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

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.