You are here

function Field::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/field/Plugin/views/field/Field.php, line 801
Definition of Views\field\Plugin\views\field\Field.

Class

Field
A field that displays fieldapi fields.

Namespace

Views\field\Plugin\views\field

Code

function document_self_tokens(&$tokens) {
  $field = $this->field_info;
  foreach ($field['columns'] as $id => $column) {
    $tokens['[' . $this->options['id'] . '-' . $id . ']'] = t('Raw @column', array(
      '@column' => $id,
    ));
  }
}