FieldConfig::calculateDependencies

public FieldConfig::calculateDependencies()

Calculates dependencies and stores them in the dependency property.

Return value

$this

Overrides FieldConfigBase::calculateDependencies

See also

\Drupal\Core\Config\Entity\ConfigDependencyManager

File

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

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;
}
doc_Drupal
2016-10-29 09:10:39
Comments
Leave a Comment

Please login to continue.