You are here

public function ConfigurableAuthorizationPluginBase::getDescription in Authorization 8

Returns the plugin's description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup|string A string describing the plugin. Might contain HTML and should be already sanitized for output.

Overrides ConfigurableAuthorizationPluginInterface::getDescription

File

src/Plugin/ConfigurableAuthorizationPluginBase.php, line 68

Class

ConfigurableAuthorizationPluginBase
Provides a base class for all configurable Authorization plugins.

Namespace

Drupal\authorization\Plugin

Code

public function getDescription() {
  $plugin_definition = $this
    ->getPluginDefinition();
  return $plugin_definition['description'] ?? '';
}