You are here

public function EncryptionProfile::calculateDependencies in Encrypt 8.3

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/EncryptionProfile.php, line 245

Class

EncryptionProfile
Defines the EncryptionProfile entity.

Namespace

Drupal\encrypt\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();
  $this
    ->addDependency('config', $this
    ->getEncryptionKey()
    ->getConfigDependencyName());
  return $this;
}