function TaxonomyIndexTid::document_self_tokens

Document any special tokens this field might use for itself.

Overrides FieldPluginBase::document_self_tokens

See also

add_self_tokens()

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/TaxonomyIndexTid.php, line 147
Definition of Drupal\taxonomy\Plugin\views\field\TaxonomyIndexTid.

Class

TaxonomyIndexTid
Field handler to display all taxonomy terms of a node.

Namespace

Drupal\taxonomy\Plugin\views\field

Code

function document_self_tokens(&$tokens) {
  $tokens['[' . $this->options['id'] . '-tid' . ']'] = t('The taxonomy term ID for the term.');
  $tokens['[' . $this->options['id'] . '-name' . ']'] = t('The taxonomy term name for the term.');
  $tokens['[' . $this->options['id'] . '-vocabulary-machine-name' . ']'] = t('The machine name for the vocabulary the term belongs to.');
  $tokens['[' . $this->options['id'] . '-vocabulary' . ']'] = t('The name for the vocabulary the term belongs to.');
}