You are here

public function ConfigurableAuthorizationPluginBase::label in Authorization 8

Returns the label for use on the administration pages.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The administration label.

Overrides ConfigurableAuthorizationPluginInterface::label

1 call to ConfigurableAuthorizationPluginBase::label()
ConfigurableAuthorizationPluginBase::getTokens in src/Plugin/ConfigurableAuthorizationPluginBase.php
Tokens for the relevant plugin.

File

src/Plugin/ConfigurableAuthorizationPluginBase.php, line 60

Class

ConfigurableAuthorizationPluginBase
Provides a base class for all configurable Authorization plugins.

Namespace

Drupal\authorization\Plugin

Code

public function label() : TranslatableMarkup {
  $plugin_definition = $this
    ->getPluginDefinition();
  return $plugin_definition['label'];
}