You are here

public function MegaMenuConfig::calculateDependencies in The Better Mega Menu 8

Same name and namespace in other branches
  1. 2.x src/Entity/MegaMenuConfig.php \Drupal\tb_megamenu\Entity\MegaMenuConfig::calculateDependencies()

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/MegaMenuConfig.php, line 181

Class

MegaMenuConfig
Defines the Mega Menu Configuration entity.

Namespace

Drupal\tb_megamenu\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();
  $this
    ->addDependency('menu', $this->menu);
  $this
    ->addDependency('theme', $this->theme);
  return $this;
}