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\PluginDefinitionCode
public function setId($id) {
$this->arrayDefinition['id'] = $id;
return $this;
}