You are here

public function DisplayVariantPluginDefinitionDecorator::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/DisplayVariantPluginDefinitionDecorator.php, line 15

Class

DisplayVariantPluginDefinitionDecorator
Provides a display variant plugin definition decorator.

Namespace

Drupal\plugin\PluginDefinition

Code

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