Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Mapping.php

function Mapping::getElementDefinition

Overrides ArrayElement::getElementDefinition

File

core/lib/Drupal/Core/Config/Schema/Mapping.php, line 49

Class

Mapping
Defines a mapping configuration element.

Namespace

Drupal\Core\Config\Schema

Code

protected function getElementDefinition($key) {
    $value = $this->value[$key] ?? NULL;
    $definition = $this->definition['mapping'][$key] ?? [];
    return $this->buildDataDefinition($definition, $value, $key);
}
RSS feed
Powered by Drupal