You are here

public function MachineName::preRender in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/field/MachineName.php \Drupal\views\Plugin\views\field\MachineName::preRender()

Runs before any fields are rendered.

This gives the handlers some time to set up before any handler has been rendered.

Parameters

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

Overrides FieldPluginBase::preRender

File

core/modules/views/src/Plugin/views/field/MachineName.php, line 72

Class

MachineName
Field handler which allows to show machine name content as human name.

Namespace

Drupal\views\Plugin\views\field

Code

public function preRender(&$values) {
  $this
    ->getValueOptions();
}