You are here

public function BlockPluginDefinitionDecorator::setLabel in Plugin 8.2

Sets the human-readable plugin label.

Parameters

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

Return value

$this

Overrides ArrayPluginDefinitionDecorator::setLabel

File

src/PluginDefinition/BlockPluginDefinitionDecorator.php, line 15

Class

BlockPluginDefinitionDecorator
Provides a block plugin definition decorator.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setLabel($label) {
  $this->arrayDefinition['admin_label'] = $label;
  return $this;
}