function Mapping::getValidKeys

Same name in other branches
  1. 10 core/lib/Drupal/Core/Config/Schema/Mapping.php \Drupal\Core\Config\Schema\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);
}

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