You are here

public function ListBase::__construct in Plugin 8.2

Constructs a new class instance.

Parameters

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

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

2 calls to ListBase::__construct()
ListPlugins::__construct in src/Controller/ListPlugins.php
Constructs a new instance.
ListPluginTypes::__construct in src/Controller/ListPluginTypes.php
Constructs a new instance.
2 methods override ListBase::__construct()
ListPlugins::__construct in src/Controller/ListPlugins.php
Constructs a new instance.
ListPluginTypes::__construct in src/Controller/ListPluginTypes.php
Constructs a new instance.

File

src/Controller/ListBase.php, line 33

Class

ListBase
Handles the listing routes.

Namespace

Drupal\plugin\Controller

Code

public function __construct(TranslationInterface $string_translation, ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
  $this->stringTranslation = $string_translation;
}