You are here

public function ArrayPluginDefinitionDecorator::setParentId in Plugin 8.2

Sets the ID of the parent plugin.

Parameters

string $id: The ID.

Return value

$this

Overrides PluginHierarchyDefinitionInterface::setParentId

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 345

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setParentId($id) {
  $this->arrayDefinition['parent_id'] = $id;
  return $this;
}