protected function YamlDiscovery::findFiles
protected YamlDiscovery::findFiles()
Returns an array of file paths, keyed by provider.
Return value
array
File
- core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 77
Class
- YamlDiscovery
- Provides discovery for YAML files within a given set of directories.
Namespace
Drupal\Component\DiscoveryCode
protected function findFiles() { $files = array(); foreach ($this->directories as $provider => $directory) { $file = $directory . '/' . $provider . '.' . $this->name . '.yml'; if (file_exists($file)) { $files[$provider] = $file; } } return $files; }
© 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!YamlDiscovery.php/function/YamlDiscovery::findFiles/8.1.x