public function TokenizeAreaPluginBase::tokenizeValue

Replaces value with special views tokens and global tokens.

Parameters

string $value: The value to eventually tokenize.

Return value

string Tokenized value if tokenize option is enabled. In any case global tokens will be replaced.

3 calls to TokenizeAreaPluginBase::tokenizeValue()
Entity::render in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php
Overrides \Drupal\views\Plugin\views\area\AreaPluginBase::render().
Text::renderTextarea in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php
Render a text area, using the proper format.
TextCustom::renderTextarea in drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php
Render a text area with filter_xss_admin.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/TokenizeAreaPluginBase.php, line 105
Contains \Drupal\views\Plugin\views\area\TokenizeAreaPluginBase.

Class

TokenizeAreaPluginBase
Tokenized base class for area handlers.

Namespace

Drupal\views\Plugin\views\area

Code

public function tokenizeValue($value) {
  if ($this->options['tokenize']) {
    $value = $this->view->style_plugin
      ->tokenizeValue($value, 0);
  }

  // As we add the globalTokenForm() we also should replace the token here.
  return $this
    ->globalTokenReplace($value);
}