You are here

public function ListPlugins::__construct in Plugin 8.2

Constructs a new instance.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translator.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.

Overrides ListBase::__construct

File

src/Controller/ListPlugins.php, line 37

Class

ListPlugins
Handles the "list plugin" route.

Namespace

Drupal\plugin\Controller

Code

public function __construct(TranslationInterface $string_translation, ModuleHandlerInterface $module_handler, ClassResolverInterface $class_resolver) {
  parent::__construct($string_translation, $module_handler);
  $this->classResolver = $class_resolver;
}