function EntityFieldStorageConfig::calculateDependencies

Overrides Entity::calculateDependencies

File

core/modules/migrate_drupal/src/Plugin/migrate/destination/EntityFieldStorageConfig.php, line 85

Class

EntityFieldStorageConfig
Deprecated. Destination with Drupal specific config dependencies.

Namespace

Drupal\migrate_drupal\Plugin\migrate\destination

Code

public function calculateDependencies() {
    $this->dependencies = parent::calculateDependencies();
    // Add a dependency on the module that provides the field type using the
    // source plugin configuration.
    $source_configuration = $this->migration
        ->getSourceConfiguration();
    if (isset($source_configuration['constants']['type'])) {
        $field_type = $this->fieldTypePluginManager
            ->getDefinition($source_configuration['constants']['type']);
        $this->addDependency('module', $field_type['provider']);
    }
    return $this->dependencies;
}

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