Provides discovery for YAML files within a given set of directories.
This overrides the Component file decoding with the Core YAML implementation.
Hierarchy
- class \Drupal\Component\Discovery\YamlDiscovery implements DiscoverableInterface
- class \Drupal\Core\Discovery\YamlDiscovery
File
- core/lib/Drupal/Core/Discovery/YamlDiscovery.php, line 13
Namespace
Drupal\Core\Discovery
Members
Name | Modifiers | Type | Description |
---|---|---|---|
YamlDiscovery::$directories | protected | property | An array of directories to scan, keyed by the provider. |
YamlDiscovery::$name | protected | property | The base filename to look for in each directory. |
YamlDiscovery::decode | protected | function | Decode a YAML file. Overrides YamlDiscovery::decode |
YamlDiscovery::findAll | public | function | Returns an array of discoverable items. Overrides DiscoverableInterface::findAll |
YamlDiscovery::findFiles | protected | function | Returns an array of file paths, keyed by provider. |
YamlDiscovery::__construct | public | function | Constructs a YamlDiscovery object. |
Please login to continue.