function FieldPluginBase::add_self_tokens

Add any special tokens this field might use for itself.

This method is intended to be overridden by items that generate fields as a list. For example, the field that displays all terms on a node might have tokens for the tid and the term.

By convention, tokens should follow the format of [token-subtoken] where token is the field ID and subtoken is the field. If the field ID is terms, then the tokens might be [terms-tid] and [terms-name].

1 call to FieldPluginBase::add_self_tokens()
FieldPluginBase::get_render_tokens in drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
Get the 'render' tokens to use for advanced rendering.
4 methods override FieldPluginBase::add_self_tokens()
Field::add_self_tokens in drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php
Add any special tokens this field might use for itself.
FieldTest::add_self_tokens in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/field/FieldTest.php
Overrides Drupal\views\Plugin\views\field\FieldPluginBase::add_self_tokens().
Roles::add_self_tokens in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Roles.php
Add any special tokens this field might use for itself.
TaxonomyIndexTid::add_self_tokens in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/TaxonomyIndexTid.php
Add any special tokens this field might use for itself.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php, line 1571
Definition of Drupal\views\Plugin\views\field\FieldPluginBase.

Class

FieldPluginBase
Base field handler that has no options and renders an unformatted field.

Namespace

Drupal\views\Plugin\views\field

Code

function add_self_tokens(&$tokens, $item) {
}