You are here

public function MigrationGroup::calculateDependencies in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8 src/Entity/MigrationGroup.php \Drupal\migrate_plus\Entity\MigrationGroup::calculateDependencies()
  2. 8.2 src/Entity/MigrationGroup.php \Drupal\migrate_plus\Entity\MigrationGroup::calculateDependencies()
  3. 8.3 src/Entity/MigrationGroup.php \Drupal\migrate_plus\Entity\MigrationGroup::calculateDependencies()
  4. 8.4 src/Entity/MigrationGroup.php \Drupal\migrate_plus\Entity\MigrationGroup::calculateDependencies()

Calculates dependencies and stores them in the dependency property.

Return value

$this

Overrides ConfigEntityBase::calculateDependencies

See also

\Drupal\Core\Config\Entity\ConfigDependencyManager

File

src/Entity/MigrationGroup.php, line 76

Class

MigrationGroup
Defines the Migration Group entity.

Namespace

Drupal\migrate_plus\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();

  // Make sure we save any explicit module dependencies.
  if ($provider = $this
    ->get('module')) {
    $this
      ->addDependency('module', $provider);
  }
  return $this->dependencies;
}