function Rss::preRender
Allow the style to do stuff before each row is rendered.
Parameters
$result: The full array of results from the query.
Overrides RowPluginBase::preRender
File
- 
              core/modules/ node/ src/ Plugin/ views/ row/ Rss.php, line 63 
Class
- Rss
- Performs a node_view on the resulting object and formats it as an RSS item.
Namespace
Drupal\node\Plugin\views\rowCode
public function preRender($values) {
  $nids = [];
  foreach ($values as $row) {
    $nids[] = $row->{$this->field_alias};
  }
  if (!empty($nids)) {
    $this->nodes = $this->entityTypeManager
      ->getStorage('node')
      ->loadMultiple($nids);
  }
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
