You are here

public function SimpleSitemap::calculateDependencies in Simple XML sitemap 4.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/SimpleSitemap.php, line 85

Class

SimpleSitemap
Defines the simple_sitemap entity.

Namespace

Drupal\simple_sitemap\Entity

Code

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