public function WorkflowConfigTransition::calculateDependencies in Workflow 8
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/ WorkflowConfigTransition.php, line 105
Class
- WorkflowConfigTransition
- Workflow configuration entity to persistently store configuration.
Namespace
Drupal\workflow\EntityCode
public function calculateDependencies() {
parent::calculateDependencies();
$this
->addDependency('config', $this
->getFromState()
->getConfigDependencyName());
$this
->addDependency('config', $this
->getToState()
->getConfigDependencyName());
return $this;
}