You are here

public function FieldHandlerInterface::postRender in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::postRender()
  2. 10 core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::postRender()

Runs after every field has been rendered.

This is meant to be used mainly to deal with field handlers whose output cannot be cached at row level but can be cached at display level. The typical example is the row counter. For completely uncacheable field output placeholders should be used.

Parameters

\Drupal\views\ResultRow $row: An array of all ResultRow objects returned from the query.

$output: The field rendered output.

Return value

string[] An associative array of post-render token values keyed by placeholder.

See also

\Drupal\views\Plugin\views\field\UncacheableFieldHandlerTrait

1 method overrides FieldHandlerInterface::postRender()
FieldPluginBase::postRender in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Runs after every field has been rendered.

File

core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php, line 189

Class

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

Namespace

Drupal\views\Plugin\views\field

Code

public function postRender(ResultRow $row, $output);