Creates a Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator
object.
Parameters
DiscoveryInterface $discovery:
The parent object implementing DiscoveryInterface that is being
decorated.
File
- drupal/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php, line 29
- Definition of 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;
}