public function SkinYamlDirectoryDiscovery::__construct in Skinr 8.2
Same name in this branch
- 8.2 src/Plugin/Discovery/SkinYamlDirectoryDiscovery.php \Drupal\skinr\Plugin\Discovery\SkinYamlDirectoryDiscovery::__construct()
- 8.2 src/Component/Discovery/SkinYamlDirectoryDiscovery.php \Drupal\skinr\Component\Discovery\SkinYamlDirectoryDiscovery::__construct()
Constructs a YamlDirectoryDiscovery object.
Parameters
array $directories: An array of directories to scan, keyed by the provider.
string $file_cache_key_suffix: The file cache key suffix. This should be unique for each type of discovery.
string $key: (optional) The key contained in the discovered data that identifies it. Defaults to 'id'.
File
- src/
Component/ Discovery/ SkinYamlDirectoryDiscovery.php, line 58 - Contains \Drupal\skinr\Component\Discovery\SkinYamlDirectoryDiscovery.
Class
- SkinYamlDirectoryDiscovery
- Discovers multiple YAML files in a set of directories.
Namespace
Drupal\skinr\Component\DiscoveryCode
public function __construct(array $directories, $file_cache_key_suffix, $key = 'id') {
$this->directories = $directories;
$this->fileCacheKeySuffix = $file_cache_key_suffix;
$this->key = $key;
}