public static function PerimeterSubscriber::getSubscribedEvents in Drupal Perimeter Defence 8
Same name and namespace in other branches
- 2.0.x src/EventSubscriber/PerimeterSubscriber.php \Drupal\perimeter\EventSubscriber\PerimeterSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ PerimeterSubscriber.php, line 33
Class
- PerimeterSubscriber
- On page not found events, ban the IP if the request is suspicious.
Namespace
Drupal\perimeter\EventSubscriberCode
public static function getSubscribedEvents() {
$events['kernel.exception'][] = [
'handleBannedUrls',
];
return $events;
}