function YamlCacheCollectorDiscovery::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Discovery/YamlCacheCollectorDiscovery.php \Drupal\Core\Discovery\YamlCacheCollectorDiscovery::__construct()
Constructs a YamlDiscovery object.
Parameters
string $name: The base filename to look for in each directory. The format will be $provider.$name.yml.
array $directories: An array of directories to scan, keyed by the provider.
Drupal\Core\Cache\CacheCollectorInterface $yamlCacheCollector: An instance of YamlCacheCollector.
Overrides YamlDiscovery::__construct
File
-
core/
lib/ Drupal/ Core/ Discovery/ YamlCacheCollectorDiscovery.php, line 28
Class
- YamlCacheCollectorDiscovery
- Provides discovery for YAML files within a given set of directories.
Namespace
Drupal\Core\DiscoveryCode
public function __construct(string $name, array $directories, protected CacheCollectorInterface $yamlCacheCollector) {
parent::__construct($name, $directories);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.