You are here

function commerce_backoffice_handler_field_term_entity_tid::document_self_tokens in Commerce Backoffice 7

Document any special tokens this field might use for itself.

Overrides views_handler_field::document_self_tokens

See also

add_self_tokens()

File

includes/views/handlers/commerce_backoffice_handler_field_term_entity_tid.inc, line 136
Definition of commerce_backoffice_handler_field_term_entity_tid.

Class

commerce_backoffice_handler_field_term_entity_tid
Field handler to display all taxonomy terms of an entity.

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.');
}