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
1 2 3 4 5 6 7 8 9 | public function getDefinitions() { $definitions = array (); foreach ( $this ->schemaStorage->readMultiple( $this ->schemaStorage->listAll()) as $schema ) { foreach ( $schema as $type => $definition ) { $definitions [ $type ] = $definition ; } } return $definitions ; } |
Please login to continue.