protected function FieldPluginBase::renderAltered

Render this field as altered text, from a fieldset set by the user.

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

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php, line 1283
Definition of Drupal\views\Plugin\views\field\FieldPluginBase.

Class

FieldPluginBase
Base field handler that has no options and renders an unformatted field.

Namespace

Drupal\views\Plugin\views\field

Code

protected function renderAltered($alter, $tokens) {

  // Filter this right away as our substitutions are already sanitized.
  $value = filter_xss_admin($alter['text']);
  $value = strtr($value, $tokens);
  return $value;
}