You are here

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

Class

SearchPluginDefinitionDecorator
Provides a search plugin definition decorator.

Namespace

Drupal\plugin\PluginDefinition

Code

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