public function ConfigSchemaDiscovery::getDefinitions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/Schema/ConfigSchemaDiscovery.php \Drupal\Core\Config\Schema\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 41 - Contains \Drupal\Core\Config\Schema\ConfigSchemaDiscovery.
Class
- ConfigSchemaDiscovery
- Allows YAML files to define config schema types.
Namespace
Drupal\Core\Config\SchemaCode
public function getDefinitions() {
$definitions = array();
foreach ($this->schemaStorage
->readMultiple($this->schemaStorage
->listAll()) as $schema) {
foreach ($schema as $type => $definition) {
$definitions[$type] = $definition;
}
}
return $definitions;
}