You are here

public function PdfGeneratorPluginManager::__construct in PDF generator API 8

Same name and namespace in other branches
  1. 2.x src/PdfGeneratorPluginManager.php \Drupal\pdf_api\PdfGeneratorPluginManager::__construct()

Constructs a PrintableFormatPluginManager 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\Config\ConfigFactory $config: The config factory service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.

Overrides DefaultPluginManager::__construct

File

src/PdfGeneratorPluginManager.php, line 37
Contains \Drupal\pdf_generator\PdfGeneratorPluginManager.

Class

PdfGeneratorPluginManager
Manages PDF generator plugins.

Namespace

Drupal\pdf_api

Code

public function __construct(\Traversable $namespaces, ConfigFactory $config, ModuleHandlerInterface $module_handler) {
  $this->config = $config;
  parent::__construct('Plugin/PdfGenerator', $namespaces, $module_handler, 'Drupal\\pdf_api\\Plugin\\PdfGeneratorInterface', 'Drupal\\pdf_api\\Annotation\\PdfGenerator');
}