function Markup::render

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides FieldPluginBase::render

File

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

Class

Markup
A handler to run a field through check_markup, using a companion format field.

Namespace

Drupal\views\Plugin\views\field

Code

function render($values) {
  $value = $this
    ->getValue($values);
  if (is_array($this->format)) {
    $format = $this
      ->getValue($values, 'format');
  }
  else {
    $format = $this->format;
  }
  if ($value) {
    $value = str_replace('<!--break-->', '', $value);
    return check_markup($value, $format, '');
  }
}