public function BusinessRule::calculateDependencies in Business Rules 8
Same name and namespace in other branches
- 2.x src/Entity/BusinessRule.php \Drupal\business_rules\Entity\BusinessRule::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/ BusinessRule.php, line 471
Class
- BusinessRule
- Defines the Rule entity.
Namespace
Drupal\business_rules\EntityCode
public function calculateDependencies() {
parent::calculateDependencies();
/** @var \Drupal\business_rules\BusinessRulesItemObject $item */
foreach ($this
->getItems() as $item) {
$this
->addDependency('config', $item
->loadEntity()
->getConfigDependencyName());
}
return $this;
}