function FieldTest::add_self_tokens in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\field\FieldPluginBase::add_self_tokens().
Overrides FieldPluginBase::add_self_tokens
File
- tests/
views_test_data/ lib/ Drupal/ views_test_data/ Plugin/ views/ field/ FieldTest.php, line 53 - Definition of Drupal\views_test_data\Plugin\views\field\FieldTest.
Class
- FieldTest
- Plugin annotation @Plugin( id = "test_field", title = @Translation("Test field plugin"), help = @Translation("Provides a generic field test plugin.") )
Namespace
Drupal\views_test_data\Plugin\views\fieldCode
function add_self_tokens(&$tokens, $item) {
$tokens['[test-token]'] = $this
->getTestValue();
}