You are here

function Roles::document_self_tokens in Views (for Drupal 7) 8.3

Document any special tokens this field might use for itself.

Overrides FieldPluginBase::document_self_tokens

See also

add_self_tokens()

File

lib/Views/user/Plugin/views/field/Roles.php, line 67
Definition of Views\user\Plugin\views\field\Roles.

Class

Roles
Field handler to provide a list of roles.

Namespace

Views\user\Plugin\views\field

Code

function document_self_tokens(&$tokens) {
  $tokens['[' . $this->options['id'] . '-role' . ']'] = t('The name of the role.');
  $tokens['[' . $this->options['id'] . '-rid' . ']'] = t('The role machine-name of the role.');
}