You are here

public function ConfigurableAuthorizationPluginBase::getTokens in Authorization 8

Tokens for the relevant plugin.

Return value

array Placeholders for string replacement.

Overrides ConfigurableAuthorizationPluginInterface::getTokens

File

src/Plugin/ConfigurableAuthorizationPluginBase.php, line 83

Class

ConfigurableAuthorizationPluginBase
Provides a base class for all configurable Authorization plugins.

Namespace

Drupal\authorization\Plugin

Code

public function getTokens() : array {
  $tokens = [];
  $tokens['@' . $this
    ->getType() . '_name'] = $this
    ->label();
  $tokens['@' . $this
    ->getType() . '_mappingDirections'] = '';
  $tokens['@examples'] = '';
  return $tokens;
}