function FieldConfig::calculateDependencies
Same name in other branches
- 9 core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::calculateDependencies()
- 8.9.x core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::calculateDependencies()
- 10 core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::calculateDependencies()
Overrides FieldConfigBase::calculateDependencies
File
-
core/
modules/ field/ src/ Entity/ FieldConfig.php, line 206
Class
- FieldConfig
- Defines the Field entity.
Namespace
Drupal\field\EntityCode
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.