You are here

protected function FieldPluginBase::renderAltered in Drupal 8

Same name and namespace in other branches
  1. 9 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 1354

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