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

Breadcrumb

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

function EntityDisplayModeBase::calculateDependencies

Overrides ConfigEntityBase::calculateDependencies

File

core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 91

Class

EntityDisplayModeBase
Base class for config entity types with settings for form and view modes.

Namespace

Drupal\Core\Entity

Code

public function calculateDependencies() {
    parent::calculateDependencies();
    $target_entity_type = \Drupal::entityTypeManager()->getDefinition($this->targetEntityType);
    $this->addDependency('module', $target_entity_type->getProvider());
    return $this;
}
RSS feed
Powered by Drupal