protected function ViewsSystemRequires::documentSelfTokens in Views System 8
Document any special tokens this field might use for itself.
Overrides FieldPluginBase::documentSelfTokens
See also
addSelfTokens()
File
- src/
Plugin/ views/ field/ ViewsSystemRequires.php, line 48 - Contains \Drupal\views_system\Plugin\views\field\ViewsSystemRequires.
Class
- ViewsSystemRequires
- Field handler to display all other items that this item requires.
Namespace
Drupal\views_system\Plugin\views\fieldCode
protected function documentSelfTokens(&$tokens) {
$tokens['{{ ' . $this->options['id'] . '__label' . ' }}'] = $this
->t('The human readable name of the item.');
$tokens['{{ ' . $this->options['id'] . '__name' . ' }}'] = $this
->t('The machine-name of the item.');
}