You are here

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

Class

ViewsSystemRegions
Field handler to display all regions of a theme.

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