function AttributeBridgeDecorator::__construct

Same name in other branches
  1. 11.x core/lib/Drupal/Component/Plugin/Discovery/AttributeBridgeDecorator.php \Drupal\Component\Plugin\Discovery\AttributeBridgeDecorator::__construct()

AttributeBridgeDecorator constructor.

Parameters

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

string $pluginDefinitionAttributeName: The name of the attribute that contains the plugin definition. The class corresponding to this name must implement \Drupal\Component\Plugin\Attribute\AttributeInterface.

File

core/lib/Drupal/Component/Plugin/Discovery/AttributeBridgeDecorator.php, line 22

Class

AttributeBridgeDecorator
Ensures that all definitions are run through the attribute process.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function __construct(DiscoveryInterface $decorated, string $pluginDefinitionAttributeName) {
}

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