You are here

public function ArrayPluginDefinitionDecorator::setDescription in Plugin 8.2

Sets the human-readable plugin description.

Parameters

\Drupal\Core\StringTranslation\TranslatableMarkup|string $description: The description.

Return value

$this

Overrides PluginDescriptionDefinitionInterface::setDescription

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 140

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setDescription($description) {
  $this->arrayDefinition['description'] = $description;
  return $this;
}