You are here

public function FieldPluginBase::render 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::render()

Renders the field.

Parameters

\Drupal\views\ResultRow $values: The values retrieved from a single row of a view's query result.

Return value

string|\Drupal\Component\Render\MarkupInterface The rendered output. If the output is safe it will be wrapped in an object that implements MarkupInterface. If it is empty or unsafe it will be a string.

Overrides FieldHandlerInterface::render

1 call to FieldPluginBase::render()
FieldPluginBase::advancedRender in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Renders a field using advanced settings.
27 methods override FieldPluginBase::render()
Boolean::render in core/modules/views/src/Plugin/views/field/Boolean.php
Renders the field.
ContextualLinks::render in core/modules/contextual/src/Plugin/views/field/ContextualLinks.php
Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::render().
Custom::render in core/modules/views/src/Plugin/views/field/Custom.php
Renders the field.
Date::render in core/modules/views/src/Plugin/views/field/Date.php
Renders the field.
DblogMessage::render in core/modules/dblog/src/Plugin/views/field/DblogMessage.php
Renders the field.

... See full list

File

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

Class

FieldPluginBase
Base class for views fields.

Namespace

Drupal\views\Plugin\views\field

Code

public function render(ResultRow $values) {
  $value = $this
    ->getValue($values);
  return $this
    ->sanitizeValue($value);
}