crocheteer-8.x-1.0/src/Plugin/Hook/EntityField/HookEntityFieldAccessPluginManager.php
src/Plugin/Hook/EntityField/HookEntityFieldAccessPluginManager.php
<?php
namespace Drupal\crocheteer\Plugin\Hook\EntityField;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\crocheteer\Annotation\HookEntityFieldAccess;
use Drupal\crocheteer\Plugin\Hook\HookPluginInterface;
use Drupal\crocheteer\Plugin\Hook\HookPluginManager;
use Traversable;
/**
* Plugin Manager for all Hook Entity Field Access Plugins.
*
* @property-read \Drupal\hook_event_dispatcher\Event\EntityField\EntityFieldAccessEvent $event
*/
class HookEntityFieldAccessPluginManager extends HookPluginManager {
/**
* {@inheritdoc}
*/
public function __construct(
Traversable $namespaces,
CacheBackendInterface $cacheBackend,
ModuleHandlerInterface $moduleHandler,
LoggerChannelFactoryInterface $loggerChannelFactory
) {
parent::__construct(
$namespaces,
$cacheBackend,
$moduleHandler,
$loggerChannelFactory,
HookPluginInterface::class,
HookEntityFieldAccess::class,
'crocheteer_entity_field_access'
);
}
}
