YamlDiscovery::__construct

public YamlDiscovery::__construct($name, array $directories)

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.

File

core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 36

Class

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

Namespace

Drupal\Component\Discovery

Code

public function __construct($name, array $directories) {
  $this->name = $name;
  $this->directories = $directories;
}
doc_Drupal
2016-10-29 09:56:58
Comments
Leave a Comment

Please login to continue.