Discovers multiple YAML files in a set of directories.
Name | Modifiers | Type | Description |
---|---|---|---|
YamlDirectoryDiscovery::$directories | protected | property | An array of directories to scan, keyed by the provider. |
YamlDirectoryDiscovery::$fileCacheKeySuffix | protected | property | The suffix for the file cache key. |
YamlDirectoryDiscovery::$idKey | protected | property | The key contained in the discovered data that identifies it. |
YamlDirectoryDiscovery::FILE_KEY | constant | Defines the key in the discovered data where the file path is stored. | |
YamlDirectoryDiscovery::findAll | public | function | Returns an array of discoverable items. Overrides DiscoverableInterface::findAll |
YamlDirectoryDiscovery::findFiles | protected | function | Returns an array of providers keyed by file path. |
YamlDirectoryDiscovery::getDirectoryIterator | protected | function | Gets an iterator to loop over the files in the provided directory. |
YamlDirectoryDiscovery::getIdentifier | protected | function | Gets the identifier from the data. |
YamlDirectoryDiscovery::__construct | public | function | Constructs a YamlDirectoryDiscovery object. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Discovery!YamlDirectoryDiscovery.php/class/YamlDirectoryDiscovery/8.1.x