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

Breadcrumb

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

function Mapping::getValidKeys

Gets all keys allowed in this mapping.

Return value

string[] A list of keys allowed in this mapping.

1 call to Mapping::getValidKeys()
Mapping::getOptionalKeys in core/lib/Drupal/Core/Config/Schema/Mapping.php
Gets all optional keys in this mapping.

File

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

Class

Mapping
Defines a mapping configuration element.

Namespace

Drupal\Core\Config\Schema

Code

public function getValidKeys() : array {
    $all_keys = $this->getDefinedKeys();
    return array_keys($all_keys);
}
RSS feed
Powered by Drupal