You are here

public function PluginId::__construct in Plugin 8.2

Same name in this branch
  1. 8.2 src/Plugin/DataType/PluginId.php \Drupal\plugin\Plugin\DataType\PluginId::__construct()
  2. 8.2 src/Plugin/views/filter/PluginId.php \Drupal\plugin\Plugin\views\filter\PluginId::__construct()

Constructs a new instance.

Parameters

\Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition.

string $name: The name of the created property.

\Drupal\plugin\Plugin\Field\FieldType\PluginCollectionItemInterface $parent: The parent object of the data property.

Overrides TypedData::__construct

File

src/Plugin/DataType/PluginId.php, line 36

Class

PluginId
Provides a plugin ID data type.

Namespace

Drupal\plugin\Plugin\DataType

Code

public function __construct(DataDefinitionInterface $definition, $name, PluginCollectionItemInterface $parent) {
  parent::__construct($definition, $name, $parent);
}