public function ExampleViewsEventSubscribers::preRender in Hook Event Dispatcher 8
Pre render event handler.
Parameters
\Drupal\hook_event_dispatcher\Event\Views\ViewsPreRenderEvent $event: The event.
File
- src/
Example/ ExampleViewsEventSubscribers.php, line 127
Class
- ExampleViewsEventSubscribers
- Class ExampleViewsEventSubscribers.
Namespace
Drupal\hook_event_dispatcher\ExampleCode
public function preRender(ViewsPreRenderEvent $event) {
$view = $event
->getView();
// Do something with the view.
$view
->setArguments([
'test',
]);
}