You are here

public function PluginBase::globalTokenReplace in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::globalTokenReplace()
  2. 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::globalTokenReplace()

File

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

Class

PluginBase

Namespace

Drupal\views\Plugin\views

Code

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