public function PrintableFormatPluginManager::__construct in Printer and PDF versions for Drupal 8+ 2.x
Same name and namespace in other branches
- 8 src/PrintableFormatPluginManager.php \Drupal\printable\PrintableFormatPluginManager::__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/
PrintableFormatPluginManager.php, line 32
Class
- PrintableFormatPluginManager
- Manages printable format plugins.
Namespace
Drupal\printableCode
public function __construct(\Traversable $namespaces, ConfigFactory $config, ModuleHandlerInterface $module_handler) {
$this->config = $config;
parent::__construct('Plugin/PrintableFormat', $namespaces, $module_handler, 'Drupal\\printable\\Plugin\\PrintableFormatInterface', 'Drupal\\printable\\Annotation\\PrintableFormat');
}