You are here

public function ViewmodepagePattern::calculateDependencies in View Mode Page 8.3

Same name and namespace in other branches
  1. 4.0.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::calculateDependencies()
  2. 3.2.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::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/ViewmodepagePattern.php, line 174

Class

ViewmodepagePattern
Defines the Viewmodepage pattern entity.

Namespace

Drupal\view_mode_page\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();
  $this
    ->calculatePluginDependencies($this
    ->getAliasType());
  foreach ($this
    ->getSelectionConditions() as $instance) {
    $this
      ->calculatePluginDependencies($instance);
  }
  return $this
    ->getDependencies();
}