function FieldPluginBase::render_altered

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

2 calls to FieldPluginBase::render_altered()
FieldPluginBase::render_text in drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php
Perform an advanced text render for the item.
FieldPluginBase::tokenize_value 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 1278
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

function render_altered($alter, $tokens) {

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