function NodeTranslationMigrateSubscriber::__construct

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

Constructs the NodeTranslationMigrateSubscriber.

Parameters

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

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

File

core/modules/node/src/EventSubscriber/NodeTranslationMigrateSubscriber.php, line 52

Class

NodeTranslationMigrateSubscriber
Creates a key value collection for migrated node translation redirections.

Namespace

Drupal\node\EventSubscriber

Code

public function __construct(KeyValueFactoryInterface $key_value, StateInterface $state) {
    $this->keyValue = $key_value;
    $this->state = $state;
}

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