function NodeTranslationExceptionSubscriber::__construct

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

Constructs the NodeTranslationExceptionSubscriber.

Parameters

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $keyValue: The key value factory.

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

\Drupal\Core\Routing\UrlGeneratorInterface $urlGenerator: The URL generator.

\Drupal\Core\State\StateInterface $state: The state service.

File

core/modules/node/src/EventSubscriber/NodeTranslationExceptionSubscriber.php, line 45

Class

NodeTranslationExceptionSubscriber
Redirect node translations that have been consolidated by migration.

Namespace

Drupal\node\EventSubscriber

Code

public function __construct(protected KeyValueFactoryInterface $keyValue, protected LanguageManagerInterface $languageManager, protected UrlGeneratorInterface $urlGenerator, protected StateInterface $state) {
}

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