Migration::$migration_dependencies

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::migration_dependencies
  2. 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::migration_dependencies
  3. 11.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::migration_dependencies

These migrations, if run, must be executed before this migration.

These are different from the configuration dependencies. Migration dependencies are only used to store relationships between migrations.

The migration_dependencies value is structured like this:

array(
    'required' => array(),
    'optional' => array(),
);

Type: array

File

core/modules/migrate/src/Plugin/Migration.php, line 190

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

protected $migration_dependencies = [];

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