You are here

protected function ViewsSystemRequiredBy::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/ViewsSystemRequiredBy.php, line 47
Contains \Drupal\views_system\Plugin\views\field\ViewsSystemRequiredBy.

Class

ViewsSystemRequiredBy
Field handler to display all other items that depends on this item.

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 item.');
  $tokens['{{ ' . $this->options['id'] . '__name' . ' }}'] = $this
    ->t('The machine-name of the item.');
}