You are here

public function FieldEncryptEntityType::calculateDependencies in Field Encryption 3.0.x

Calculates dependencies and stores them in the dependency property.

Return value

$this

Overrides ConfigEntityBase::calculateDependencies

See also

\Drupal\Core\Config\Entity\ConfigDependencyManager

File

src/Entity/FieldEncryptEntityType.php, line 55

Class

FieldEncryptEntityType
Defines the Field Encrypt entity type configuration entity.

Namespace

Drupal\field_encrypt\Entity

Code

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