function D7NodeTranslation::generateFollowUpMigrations

Same name and namespace in other branches
  1. 8.9.x core/modules/node/src/Plugin/migrate/D7NodeTranslation.php \Drupal\node\Plugin\migrate\D7NodeTranslation::generateFollowUpMigrations()
  2. 10 core/modules/node/src/Plugin/migrate/D7NodeTranslation.php \Drupal\node\Plugin\migrate\D7NodeTranslation::generateFollowUpMigrations()
  3. 11.x core/modules/node/src/Plugin/migrate/D7NodeTranslation.php \Drupal\node\Plugin\migrate\D7NodeTranslation::generateFollowUpMigrations()

Generates follow-up migrations.

When the migration implementing this interface has been successfully executed, this method will be used to generate the follow-up migrations which depends on the now migrated data.

Return value

\Drupal\migrate\Plugin\MigrationInterface[] The follow-up migrations.

Overrides MigrationWithFollowUpInterface::generateFollowUpMigrations

File

core/modules/node/src/Plugin/migrate/D7NodeTranslation.php, line 16

Class

D7NodeTranslation
Migration plugin for the Drupal 7 node translations.

Namespace

Drupal\node\Plugin\migrate

Code

public function generateFollowUpMigrations() {
    $this->migrationPluginManager
        ->clearCachedDefinitions();
    return $this->migrationPluginManager
        ->createInstances('d7_entity_reference_translation');
}

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