crocheteer-8.x-1.0/src/Plugin/Hook/Entity/HookEntityCreatePluginManager.php

src/Plugin/Hook/Entity/HookEntityCreatePluginManager.php
<?php

namespace Drupal\crocheteer\Plugin\Hook\Entity;

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

/**
 * Plugin Manager for all Hook Entity Create Plugins.
 *
 * @property-read \Drupal\hook_event_dispatcher\Event\Entity\EntityCreateEvent $event
 */
class HookEntityCreatePluginManager extends HookEntityPluginManager {

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

}

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

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