protected function YamlDiscovery::findFiles in Plug 7
Returns an array of file paths, keyed by provider.
Return value
array
1 call to YamlDiscovery::findFiles()
- YamlDiscovery::findAll in lib/
Drupal/ Component/ Discovery/ YamlDiscovery.php - Returns an array of discoverable items.
File
- lib/
Drupal/ Component/ Discovery/ YamlDiscovery.php, line 82 - Contains \Drupal\Component\Discovery\YamlDiscovery.
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;
}