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()
TestExample::render in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/area/TestExample.php
Implements \Drupal\views\Plugin\views\area\AreaPluginBase::render().
Title::preRender in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php
Overrides Drupal\views\Plugin\views\AreaPluginBase::preRender().
TokenizeAreaPluginBase::tokenizeValue in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/TokenizeAreaPluginBase.php
Replaces value with special views tokens and global tokens.

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);
}