You are here

public function DisplayVariantPluginDefinitionDecorator::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 ArrayPluginDefinitionDecorator::getLabel

File

src/PluginDefinition/DisplayVariantPluginDefinitionDecorator.php, line 24

Class

DisplayVariantPluginDefinitionDecorator
Provides a display variant plugin definition decorator.

Namespace

Drupal\plugin\PluginDefinition

Code

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