You are here

public function ExampleViewsEventSubscribers::postBuild in Hook Event Dispatcher 8

Post build event handler.

Parameters

\Drupal\hook_event_dispatcher\Event\Views\ViewsPostBuildEvent $event: The event.

File

src/Example/ExampleViewsEventSubscribers.php, line 88

Class

ExampleViewsEventSubscribers
Class ExampleViewsEventSubscribers.

Namespace

Drupal\hook_event_dispatcher\Example

Code

public function postBuild(ViewsPostBuildEvent $event) {
  $view = $event
    ->getView();

  // Do something with the view.
  $view->build_info;
}