function Mapping::getDefinedKeys

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Config/Schema/Mapping.php \Drupal\Core\Config\Schema\Mapping::getDefinedKeys()

Gets the keys defined for this mapping (locally defined + inherited).

Return value

array Raw schema definitions: keys are mapping keys, values are their definitions.

2 calls to Mapping::getDefinedKeys()
Mapping::getRequiredKeys in core/lib/Drupal/Core/Config/Schema/Mapping.php
Gets all required keys in this mapping.
Mapping::getValidKeys in core/lib/Drupal/Core/Config/Schema/Mapping.php
Gets all keys allowed in this mapping.

File

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

Class

Mapping
Defines a mapping configuration element.

Namespace

Drupal\Core\Config\Schema

Code

protected function getDefinedKeys() : array {
    $definition = $this->getDataDefinition();
    return $definition->toArray()['mapping'];
}

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