function ConfigTranslationController::__construct

Same name and namespace in other branches
  1. 11.x core/modules/config_translation/src/Controller/ConfigTranslationController.php \Drupal\config_translation\Controller\ConfigTranslationController::__construct()
  2. 10 core/modules/config_translation/src/Controller/ConfigTranslationController.php \Drupal\config_translation\Controller\ConfigTranslationController::__construct()
  3. 9 core/modules/config_translation/src/Controller/ConfigTranslationController.php \Drupal\config_translation\Controller\ConfigTranslationController::__construct()
  4. 8.9.x core/modules/config_translation/src/Controller/ConfigTranslationController.php \Drupal\config_translation\Controller\ConfigTranslationController::__construct()

Constructs a ConfigTranslationController.

Parameters

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

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

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

\Drupal\Core\PathProcessor\InboundPathProcessorInterface $pathProcessor: 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 54

Class

ConfigTranslationController
Provides page callbacks for the configuration translation interface.

Namespace

Drupal\config_translation\Controller

Code

public function __construct(protected ConfigMapperManagerInterface $configMapperManager, protected AccessManagerInterface $accessManager, #[Autowire(service: 'router')] protected RequestMatcherInterface $router, protected InboundPathProcessorInterface $pathProcessor, protected AccountInterface $account, LanguageManagerInterface $language_manager, protected RendererInterface $renderer) {
  $this->languageManager = $language_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.