You are here

protected function ViewsSystemDependencies::documentSelfTokens in Views System 8

Document any special tokens this field might use for itself.

Overrides FieldPluginBase::documentSelfTokens

See also

addSelfTokens()

File

src/Plugin/views/field/ViewsSystemDependencies.php, line 50
Contains \Drupal\views_system\Plugin\views\field\ViewsSystemDependencies.

Class

ViewsSystemDependencies
Field handler to display all dependencies of a module.

Namespace

Drupal\views_system\Plugin\views\field

Code

protected function documentSelfTokens(&$tokens) {
  $tokens['{{ ' . $this->options['id'] . '__label' . ' }}'] = $this
    ->t('The human readable name of the module.');
  $tokens['{{ ' . $this->options['id'] . '__name' . ' }}'] = $this
    ->t('The machine-name of the module.');
  $tokens['{{ ' . $this->options['id'] . '__version' . ' }}'] = $this
    ->t('The version of the module.');
}