function Mapping::getElementDefinition
Gets data definition object for contained element.
Parameters
int|string $key: Property name or index of the element.
Return value
\Drupal\Core\TypedData\DataDefinitionInterface
Overrides ArrayElement::getElementDefinition
File
- 
              core/lib/ Drupal/ Core/ Config/ Schema/ Mapping.php, line 23 
Class
- Mapping
- Defines a mapping configuration element.
Namespace
Drupal\Core\Config\SchemaCode
protected function getElementDefinition($key) {
  $value = $this->value[$key] ?? NULL;
  $definition = $this->definition['mapping'][$key] ?? [];
  return $this->buildDataDefinition($definition, $value, $key);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
