Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldConfig.php

function FieldConfig::calculateDependencies

Overrides FieldConfigBase::calculateDependencies

File

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

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal