public function NodeTranslationMigrateSubscriber::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\EventSubscriberCode
public function __construct(KeyValueFactoryInterface $key_value, StateInterface $state) {
$this->keyValue = $key_value;
$this->state = $state;
}