crocheteer-8.x-1.0/src/EventSubscriber/HookPathUpdateEventSubscriber.php

src/EventSubscriber/HookPathUpdateEventSubscriber.php
<?php

namespace Drupal\crocheteer\EventSubscriber;

use Drupal\hook_event_dispatcher\Event\Path\PathUpdateEvent;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;

/**
 * Register Hooks handler for the Path Update Event.
 *
 * @property-read \Drupal\crocheteer\Plugin\Hook\Path\HookPathUpdatePluginManager $pluginManager
 */
class HookPathUpdateEventSubscriber extends HookEventSubscriber {

  /**
   * {@inheritdoc}
   */
  public static function getSubscribedEvents() : array {
    return [
      HookEventDispatcherInterface::PATH_UPDATE => 'onPathUpdate',
    ];
  }

  /**
   * On Path Update Event.
   *
   * @param \Drupal\hook_event_dispatcher\Event\Path\PathUpdateEvent $event
   *   The Path Update Event.
   */
  public function onPathUpdate(PathUpdateEvent $event) : void {
    $this->handleHooks($event);
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc