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

Breadcrumb

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

function 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'];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal