You are here

public function ConfigTranslationController::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/Controller/ConfigTranslationController.php \Drupal\config_translation\Controller\ConfigTranslationController::__construct()

Constructs a ConfigTranslationController.

Parameters

\Drupal\config_translation\ConfigMapperManagerInterface $config_mapper_manager: The configuration mapper manager.

\Drupal\Core\Access\AccessManagerInterface $access_manager: The menu link access service.

\Symfony\Component\Routing\Matcher\RequestMatcherInterface $router: The dynamic router service.

\Drupal\Core\PathProcessor\InboundPathProcessorInterface $path_processor: The inbound path processor.

\Drupal\Core\Session\AccountInterface $account: The current user.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

core/modules/config_translation/src/Controller/ConfigTranslationController.php, line 94

Class

ConfigTranslationController
Provides page callbacks for the configuration translation interface.

Namespace

Drupal\config_translation\Controller

Code

public function __construct(ConfigMapperManagerInterface $config_mapper_manager, AccessManagerInterface $access_manager, RequestMatcherInterface $router, InboundPathProcessorInterface $path_processor, AccountInterface $account, LanguageManagerInterface $language_manager, RendererInterface $renderer) {
  $this->configMapperManager = $config_mapper_manager;
  $this->accessManager = $access_manager;
  $this->router = $router;
  $this->pathProcessor = $path_processor;
  $this->account = $account;
  $this->languageManager = $language_manager;
  $this->renderer = $renderer;
}