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

src/EventSubscriber/HookViewsPostBuildEventSubscriber.php
<?php

namespace Drupal\crocheteer\EventSubscriber;

use Drupal\hook_event_dispatcher\Event\Views\ViewsPostBuildEvent;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;

/**
 * Register Hooks handler for the Views Post Build Event.
 *
 * @property-read \Drupal\crocheteer\Plugin\Hook\Views\HookViewsPostBuildPluginManager $pluginManager
 */
class HookViewsPostBuildEventSubscriber extends HookEventSubscriber {

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

  /**
   * On Views Post Build Event.
   *
   * @param \Drupal\hook_event_dispatcher\Event\Views\ViewsPostBuildEvent $event
   *   The Views Post Build Event.
   */
  public function onViewsPostBuild(ViewsPostBuildEvent $event) : void {
    $this->handleHooks($event);
  }

}

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

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