You are here

public function ArrayPluginDefinitionDecorator::getLabel in Plugin 8.2

Gets the human-readable plugin label.

Return value

\Drupal\Core\StringTranslation\TranslatableString|string|null The label or NULL if there is none.

Overrides PluginLabelDefinitionInterface::getLabel

7 methods override ArrayPluginDefinitionDecorator::getLabel()
ArchiverPluginDefinitionDecorator::getLabel in src/PluginDefinition/ArchiverPluginDefinitionDecorator.php
Gets the human-readable plugin label.
BlockPluginDefinitionDecorator::getLabel in src/PluginDefinition/BlockPluginDefinitionDecorator.php
Gets the human-readable plugin label.
DisplayVariantPluginDefinitionDecorator::getLabel in src/PluginDefinition/DisplayVariantPluginDefinitionDecorator.php
Gets the human-readable plugin label.
FilterPluginDefinitionDecorator::getLabel in src/PluginDefinition/FilterPluginDefinitionDecorator.php
Gets the human-readable plugin label.
LinkPluginDefinitionDecorator::getLabel in src/PluginDefinition/LinkPluginDefinitionDecorator.php
Gets the human-readable plugin label.

... See full list

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 133

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

public function getLabel() {
  return isset($this->arrayDefinition['label']) ? $this->arrayDefinition['label'] : NULL;
}