function FieldConfig::calculateDependencies

Same name in other branches
  1. 9 core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::calculateDependencies()
  2. 8.9.x core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::calculateDependencies()
  3. 11.x core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::calculateDependencies()

Overrides FieldConfigBase::calculateDependencies

File

core/modules/field/src/Entity/FieldConfig.php, line 199

Class

FieldConfig
Defines the Field entity.

Namespace

Drupal\field\Entity

Code

public function calculateDependencies() {
    parent::calculateDependencies();
    // Mark the field_storage_config as a dependency.
    $this->addDependency('config', $this->getFieldStorageDefinition()
        ->getConfigDependencyName());
    return $this;
}

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