You are here

public function ViewsPostRenderEvent::getOutput in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/views_event_dispatcher/src/Event/Views/ViewsPostRenderEvent.php \Drupal\views_event_dispatcher\Event\Views\ViewsPostRenderEvent::getOutput()

Get the output render array.

Drupal core issue regarding $output being documented as a string when it is in fact a render array.

Return value

array A renderable array containing the output of the view.

See also

https://www.drupal.org/project/drupal/issues/2793169

File

modules/views_event_dispatcher/src/Event/Views/ViewsPostRenderEvent.php, line 64

Class

ViewsPostRenderEvent
Class ViewsPostRenderEvent.

Namespace

Drupal\views_event_dispatcher\Event\Views

Code

public function &getOutput() : array {
  return $this->output;
}