You are here

static function CleanPagerSubscriber::getSubscribedEvents in Clean Pagination 8

File

src/EventSubscriber/CleanPagerSubscriber.php, line 23
Fto redirects.

Class

CleanPagerSubscriber

Namespace

Drupal\cleanpager\EventSubscriber

Code

static function getSubscribedEvents() {

  // Replace ?page=1 to /page/1.
  $events[KernelEvents::REQUEST][] = array(
    'checkForRedirection',
  );
  return $events;
}