public function EntityPrintPluginManager::__construct in Entity Print 8.2
Same name and namespace in other branches
- 8 src/Plugin/EntityPrintPluginManager.php \Drupal\entity_print\Plugin\EntityPrintPluginManager::__construct()
Constructs a EntityPrintPluginManager object.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Overrides DefaultPluginManager::__construct
File
- src/
Plugin/ EntityPrintPluginManager.php, line 65
Class
- EntityPrintPluginManager
- Entity print plugin manager.
Namespace
Drupal\entity_print\PluginCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, EventDispatcherInterface $dispatcher, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct('Plugin/EntityPrint/PrintEngine', $namespaces, $module_handler, 'Drupal\\entity_print\\Plugin\\PrintEngineInterface', 'Drupal\\entity_print\\Annotation\\PrintEngine');
$this
->alterInfo('entity_print_print_engine');
$this
->setCacheBackend($cache_backend, 'entity_print_print_engines');
$this->dispatcher = $dispatcher;
$this->configFactory = $config_factory;
$this->entityTypeManager = $entity_type_manager;
}