You are here

public function DerivativeDiscoveryDecorator::__construct in Plug 7

Creates a new instance.

Parameters

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

File

lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php, line 44
Contains \Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator.

Class

DerivativeDiscoveryDecorator
Base class providing the tools for a plugin discovery to be derivative aware.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function __construct(DiscoveryInterface $decorated) {
  $this->decorated = $decorated;
}