You are here

public function ConfigSnapshot::calculateDependencies in Config Snapshot 8

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/ConfigSnapshot.php, line 190

Class

ConfigSnapshot
Defines the Config snapshot entity.

Namespace

Drupal\config_snapshot\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();

  // Create a dependency on the extension.
  $this
    ->addDependency($this->extensionType, $this->extensionName);
  return $this;
}