ConfigSchemaDiscovery::getDefinitions

public ConfigSchemaDiscovery::getDefinitions()

Gets the definition of all plugins for this type.

Return value

mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.

Overrides DiscoveryTrait::getDefinitions

File

core/lib/Drupal/Core/Config/Schema/ConfigSchemaDiscovery.php, line 36

Class

ConfigSchemaDiscovery
Allows YAML files to define config schema types.

Namespace

Drupal\Core\Config\Schema

Code

public function getDefinitions() {
  $definitions = array();
  foreach ($this->schemaStorage->readMultiple($this->schemaStorage->listAll()) as $schema) {
    foreach ($schema as $type => $definition) {
      $definitions[$type] = $definition;
    }
  }
  return $definitions;
}
doc_Drupal
2016-10-29 08:54:23
Comments
Leave a Comment

Please login to continue.