public function PluginBase::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.

3 calls to PluginBase::globalTokenReplace()

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/PluginBase.php, line 259
Definition of Drupal\views\Plugin\views\PluginBase.

Class

PluginBase

Namespace

Drupal\views\Plugin\views

Code

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