function TestMigrationMock::getMigrationDependencies

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Unit\TestMigrationMock::getMigrationDependencies()
  2. 8.9.x core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Unit\TestMigrationMock::getMigrationDependencies()
  3. 11.x core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php \Drupal\Tests\migrate\Unit\TestMigrationMock::getMigrationDependencies()

Get the dependencies for this migration.

Parameters

bool $expand: Will issue a deprecation in Drupal 10 if set to FALSE. See https://www.drupal.org/node/3266691.

Return value

array The dependencies for this migrations.

Overrides Migration::getMigrationDependencies

File

core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php, line 231

Class

TestMigrationMock
A mock migration plugin.

Namespace

Drupal\Tests\migrate\Unit

Code

public function getMigrationDependencies(bool $expand = FALSE) {
    // For the purpose of testing, do not expand dependencies.
    return $this->migration_dependencies;
}

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