You are here

public function ArrayPluginDefinitionDecorator::setId in Plugin 8.2

Sets the plugin ID.

Parameters

string $id: The plugin ID.

Return value

$this

Overrides PluginDefinitionInterface::setId

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 83

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

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