You are here

public function NodeTranslationMigrateSubscriber::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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;
}