function FieldPluginBase::renderAltered

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::renderAltered()
  2. 8.9.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::renderAltered()
  3. 11.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::renderAltered()

Render this field as user-defined altered text.

2 calls to FieldPluginBase::renderAltered()
FieldPluginBase::renderText in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Performs an advanced text render for the item.
FieldPluginBase::tokenizeValue in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Replaces a value with tokens from the last field.

File

core/modules/views/src/Plugin/views/field/FieldPluginBase.php, line 1401

Class

FieldPluginBase
Base class for views fields.

Namespace

Drupal\views\Plugin\views\field

Code

protected function renderAltered($alter, $tokens) {
    return $this->viewsTokenReplace($alter['text'], $tokens);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.