You are here

public function Rss::preRender in Support Ticketing System 8

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

modules/support_ticket/src/Plugin/views/row/Rss.php, line 84
Contains \Drupal\support_ticket\Plugin\views\row\Rss.

Class

Rss
Plugin which performs a support_ticket_view on the resulting object and formats it as an RSS item.

Namespace

Drupal\support_ticket\Plugin\views\row

Code

public function preRender($values) {
  $stids = array();
  foreach ($values as $row) {
    $stids[] = $row->{$this->field_alias};
  }
  if (!empty($stids)) {
    $this->support_tickets = $this->supportTicketStorage
      ->loadMultiple($stids);
  }
}