You are here

public function PluginLabelDefinitionInterface::setLabel in Plugin 8.2

Sets the human-readable plugin label.

Parameters

\Drupal\Core\StringTranslation\TranslatableString|string $label: The label.

Return value

$this

1 method overrides PluginLabelDefinitionInterface::setLabel()
ArrayPluginDefinitionDecorator::setLabel in src/PluginDefinition/ArrayPluginDefinitionDecorator.php
Sets the human-readable plugin label.

File

src/PluginDefinition/PluginLabelDefinitionInterface.php, line 20

Class

PluginLabelDefinitionInterface
Defines a plugin definition that includes a label.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setLabel($label);