You are here

public function ViewsPluginInterface::globalTokenReplace in Drupal 10

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

Returns a string with any core tokens replaced.

Parameters

string $string: The string to preform the token replacement on.

array $options: An array of options, as passed to \Drupal\Core\Utility\Token::replace().

Return value

string The tokenized string.

File

core/modules/views/src/Plugin/views/ViewsPluginInterface.php, line 144

Class

ViewsPluginInterface
Provides an interface for all views plugins.

Namespace

Drupal\views\Plugin\views

Code

public function globalTokenReplace($string = '', array $options = []);