function YamlCacheCollectorDiscovery::findAll
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Discovery/YamlCacheCollectorDiscovery.php \Drupal\Core\Discovery\YamlCacheCollectorDiscovery::findAll()
Overrides YamlDiscovery::findAll
File
-
core/
lib/ Drupal/ Core/ Discovery/ YamlCacheCollectorDiscovery.php, line 35
Class
- YamlCacheCollectorDiscovery
- Provides discovery for YAML files within a given set of directories.
Namespace
Drupal\Core\DiscoveryCode
public function findAll() : array {
$all = [];
$files = $this->findFiles();
foreach ($files as $provider => $file) {
$all[$provider] = $this->yamlCacheCollector
->get($file);
}
// Once discovery is complete, call ::destruct() on the cache collector to
// free up memory.
$this->yamlCacheCollector
->destruct();
return $all;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.