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 token_replace.

Return value

string The tokenized string.

4 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
Overrides Drupal\views\Plugin\views\area\AreaPluginBase::render().
Text::render_textarea in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php
Render a text area, using the proper format.
TextCustom::render_textarea in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php
Render a text area with filter_xss_admin.
Title::preRender in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Title.php
Overrides Drupal\views\Plugin\views\AreaPluginBase::preRender().

File

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

Class

PluginBase

Namespace

Drupal\views\Plugin\views

Code

public function globalTokenReplace($string = '', array $options = array()) {
  return token_replace($string, array(
    'view' => $this->view,
  ), $options);
}