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 88

Class

YamlDiscovery
Provides discovery for YAML files within a given set of directories.

Namespace

Drupal\Component\Discovery

Code

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;
}
doc_Drupal
2016-10-29 09:56:58
Comments
Leave a Comment

Please login to continue.