function PluginBase::globalTokenReplace

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::globalTokenReplace()
1 call to PluginBase::globalTokenReplace()
TokenizeAreaPluginBase::tokenizeValue in core/modules/views/src/Plugin/views/area/TokenizeAreaPluginBase.php
Replaces value with special views tokens and global tokens.

File

core/modules/views/src/Plugin/views/PluginBase.php, line 340

Class

PluginBase
Base class for any views plugin types.

Namespace

Drupal\views\Plugin\views

Code

public function globalTokenReplace($string = '', array $options = []) {
  return \Drupal::token()->replace($string, [
    'view' => $this->view,
  ], $options);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.