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\PluginCode
public function getDescription() {
$plugin_definition = $this
->getPluginDefinition();
return $plugin_definition['description'] ?? '';
}