function DevelDumperManager::__construct

Constructs a DevelDumperPluginManager object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Session\AccountProxyInterface $account: The current account.

\Drupal\devel\DevelDumperPluginManagerInterface $dumperManager: The devel dumper plugin manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.

File

src/DevelDumperManager.php, line 47

Class

DevelDumperManager
Manager class for DevelDumper.

Namespace

Drupal\devel

Code

public function __construct(ConfigFactoryInterface $config_factory, protected AccountProxyInterface $account, protected DevelDumperPluginManagerInterface $dumperManager, protected EntityTypeManagerInterface $entityTypeManager, protected MessengerInterface $messenger, TranslationInterface $string_translation) {
  $this->config = $config_factory->get('devel.settings');
  $this->stringTranslation = $string_translation;
}