public function PluginBase::globalTokenReplace in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::globalTokenReplace()
- 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
Namespace
Drupal\views\Plugin\viewsCode
public function globalTokenReplace($string = '', array $options = []) {
return \Drupal::token()
->replace($string, [
'view' => $this->view,
], $options);
}