You are here

function hook_event_dispatcher_page_bottom in Hook Event Dispatcher 8

Implements hook_page_bottom().

2 calls to hook_event_dispatcher_page_bottom()
PageBottomEventTest::testPageBottomEventByReference in tests/src/Unit/Page/PageBottomEventTest.php
Test the PageBottomEvent by reference.
PageBottomEventTest::testPageBottomEventBySet in tests/src/Unit/Page/PageBottomEventTest.php
Test the PageBottomEvent by set.

File

./hook_event_dispatcher.module, line 822
Hook event dispatcher module.

Code

function hook_event_dispatcher_page_bottom(array &$pageBottom) {

  /** @var \Drupal\hook_event_dispatcher\Manager\HookEventDispatcherManagerInterface $manager */
  $manager = \Drupal::service('hook_event_dispatcher.manager');
  $event = new PageBottomEvent($pageBottom);
  $manager
    ->register($event);
}