You are here

public function YamlDiscoveryDecorator::__construct in Plug 7

Constructs a YamlDiscoveryDecorator object.

Parameters

\Drupal\Component\Plugin\Discovery\DiscoveryInterface $decorated: The discovery object that is being decorated.

string $name: The file name suffix to use for discovery. E.g. 'test' will become 'MODULE.test.yml'.

array $directories: An array of directories to scan.

Overrides YamlDiscovery::__construct

File

lib/Drupal/Core/Plugin/Discovery/YamlDiscoveryDecorator.php, line 38
Contains \Drupal\Core\Plugin\Discovery\YamlDiscoveryDecorator.

Class

YamlDiscoveryDecorator
Enables YAML discovery for plugin definitions.

Namespace

Drupal\Core\Plugin\Discovery

Code

public function __construct(DiscoveryInterface $decorated, $name, array $directories) {
  parent::__construct($name, $directories);
  $this->decorated = $decorated;
}