crocheteer-8.x-1.0/src/Plugin/Hook/Path/HookPathDeletePluginManager.php

src/Plugin/Hook/Path/HookPathDeletePluginManager.php
<?php

namespace Drupal\crocheteer\Plugin\Hook\Path;

use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\crocheteer\Annotation\HookPathDelete;
use Drupal\crocheteer\Plugin\Hook\HookPluginInterface;
use Drupal\crocheteer\Plugin\Hook\HookPluginManager;
use Traversable;

/**
 * Plugin Manager for all Hook Path Delete Plugins.
 *
 * @property-read \Drupal\hook_event_dispatcher\Event\Path\PathDeleteEvent $event
 */
class HookPathDeletePluginManager extends HookPluginManager {

  /**
   * {@inheritdoc}
   */
  public function __construct(
    Traversable $namespaces,
    CacheBackendInterface $cacheBackend,
    ModuleHandlerInterface $moduleHandler,
    LoggerChannelFactoryInterface $loggerChannelFactory
  ) {
    parent::__construct(
      $namespaces,
      $cacheBackend,
      $moduleHandler,
      $loggerChannelFactory,
      HookPluginInterface::class,
      HookPathDelete::class,
      'crocheteer_path_delete'
    );
  }

}

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

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