function DirectoryWithMetadataDiscovery::__construct

Same name in this branch
  1. 11.x core/modules/sdc/src/Plugin/Discovery/DirectoryWithMetadataDiscovery.php \Drupal\sdc\Plugin\Discovery\DirectoryWithMetadataDiscovery::__construct()
Same name and namespace in other branches
  1. 10 core/modules/sdc/src/Plugin/Discovery/DirectoryWithMetadataDiscovery.php \Drupal\sdc\Plugin\Discovery\DirectoryWithMetadataDiscovery::__construct()

Constructs a DirectoryWithMetadataDiscovery object.

Parameters

array $directories: An array of directories to scan, keyed by the provider. The value can either be a string or an array of strings. The string values should be the path of a directory to scan.

string $file_cache_key_suffix: The file cache key suffix. This should be unique for each type of discovery.

\Drupal\Core\File\FileSystemInterface $fileSystem: The file system service.

Overrides YamlDirectoryDiscovery::__construct

File

core/lib/Drupal/Core/Plugin/Discovery/DirectoryWithMetadataDiscovery.php, line 26

Class

DirectoryWithMetadataDiscovery
Does the actual finding of the directories with metadata files.

Namespace

Drupal\Core\Plugin\Discovery

Code

public function __construct(array $directories, string $file_cache_key_suffix, FileSystemInterface $fileSystem) {
    parent::__construct($directories, $file_cache_key_suffix);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.