Tour::calculateDependencies

public Tour::calculateDependencies()

Calculates dependencies and stores them in the dependency property.

Return value

$this

Overrides ConfigEntityBase::calculateDependencies

See also

\Drupal\Core\Config\Entity\ConfigDependencyManager

File

core/modules/tour/src/Entity/Tour.php, line 171

Class

Tour
Defines the configured tour entity.

Namespace

Drupal\tour\Entity

Code

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

  foreach ($this->tipsCollection as $instance) {
    $definition = $instance->getPluginDefinition();
    $this->addDependency('module', $definition['provider']);
  }

  $this->addDependency('module', $this->module);
  return $this;
}
doc_Drupal
2016-10-29 09:48:48
Comments
Leave a Comment

Please login to continue.