function ViewMode::calculateDependencies

Same name in other branches
  1. 8.9.x core/modules/node/src/Plugin/migrate/source/d6/ViewMode.php \Drupal\node\Plugin\migrate\source\d6\ViewMode::calculateDependencies()

Overrides DrupalSqlBase::calculateDependencies

File

core/modules/node/src/Plugin/migrate/source/d6/ViewMode.php, line 76

Class

ViewMode
Drupal 6 view mode source from database.

Namespace

Drupal\node\Plugin\migrate\source\d6

Code

public function calculateDependencies() {
    $this->dependencies = parent::calculateDependencies();
    if (isset($this->configuration['constants']['targetEntityType'])) {
        @trigger_error('The constant targetEntityType is deprecated in drupal:9.2.0 and is removed in drupal:10.0.0. Use entity_type instead. See https://www.drupal.org/node/3208135', E_USER_DEPRECATED);
        $this->addDependency('module', $this->entityTypeManager
            ->getDefinition($this->configuration['constants']['targetEntityType'])
            ->getProvider());
    }
    return $this->dependencies;
}

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