public function PluginTypeManager::__construct in Plugin 8.2
Creates a new instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- src/
PluginType/ PluginTypeManager.php, line 47
Class
- PluginTypeManager
- Provides a plugin type manager.
Namespace
Drupal\plugin\PluginTypeCode
public function __construct(ContainerInterface $container, ModuleHandlerInterface $module_handler) {
$this->container = $container;
$this->moduleHandler = $module_handler;
}