function DrupalSqlBase::calculateDependencies
Same name in other branches
- 9 core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::calculateDependencies()
- 10 core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::calculateDependencies()
- 11.x core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::calculateDependencies()
Overrides DependentPluginInterface::calculateDependencies
1 call to DrupalSqlBase::calculateDependencies()
- ViewMode::calculateDependencies in core/
modules/ node/ src/ Plugin/ migrate/ source/ d6/ ViewMode.php - Calculates dependencies for the configured plugin.
1 method overrides DrupalSqlBase::calculateDependencies()
- ViewMode::calculateDependencies in core/
modules/ node/ src/ Plugin/ migrate/ source/ d6/ ViewMode.php - Calculates dependencies for the configured plugin.
File
-
core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ DrupalSqlBase.php, line 184
Class
- DrupalSqlBase
- A base class for source plugins using a Drupal database as a source.
Namespace
Drupal\migrate_drupal\Plugin\migrate\sourceCode
public function calculateDependencies() {
// Generic handling for Drupal source plugin constants.
if (isset($this->configuration['constants']['entity_type'])) {
$this->addDependency('module', $this->entityTypeManager
->getDefinition($this->configuration['constants']['entity_type'])
->getProvider());
}
if (isset($this->configuration['constants']['module'])) {
$this->addDependency('module', $this->configuration['constants']['module']);
}
return $this->dependencies;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.