Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NodeTranslationMigrateSubscriber.php

function NodeTranslationMigrateSubscriber::onPostImport

Set the node_translation_redirect state to enable the redirects.

Parameters

\Drupal\migrate\Event\MigrateImportEvent $event: The migrate import event.

File

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

Class

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

Namespace

Drupal\node\EventSubscriber

Code

public function onPostImport(MigrateImportEvent $event) {
    if ($this->isNodeTranslationsMigration($event)) {
        $this->state
            ->set('node_translation_redirect', TRUE);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal