crocheteer-8.x-1.0/src/EventSubscriber/HookPathDeleteEventSubscriber.php
src/EventSubscriber/HookPathDeleteEventSubscriber.php
<?php
namespace Drupal\crocheteer\EventSubscriber;
use Drupal\hook_event_dispatcher\Event\Path\PathDeleteEvent;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
/**
* Register Hooks handler for the Path Delete Event.
*
* @property-read \Drupal\crocheteer\Plugin\Hook\Path\HookPathDeletePluginManager $pluginManager
*/
class HookPathDeleteEventSubscriber extends HookEventSubscriber {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() : array {
return [
HookEventDispatcherInterface::PATH_DELETE => 'onPathDelete',
];
}
/**
* On Path Delete Event.
*
* @param \Drupal\hook_event_dispatcher\Event\Path\PathDeleteEvent $event
* The Path Delete Event.
*/
public function onPathDelete(PathDeleteEvent $event) : void {
$this->handleHooks($event);
}
}
