public function SearchApiEntityField::preRender in Search API 8
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 EntityField::preRender
File
- src/
Plugin/ views/ field/ SearchApiEntityField.php, line 229
Class
- SearchApiEntityField
- Displays entity field data.
Namespace
Drupal\search_api\Plugin\views\fieldCode
public function preRender(&$values) {
if ($this->options['field_rendering']) {
$this
->traitPreRender($values);
parent::preRender($values);
}
else {
$this->fallbackHandler
->preRender($values);
}
}