function Workflow::onDependencyRemoval
Same name in other branches
- 9 core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::onDependencyRemoval()
- 8.9.x core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::onDependencyRemoval()
- 11.x core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::onDependencyRemoval()
Overrides ConfigEntityBase::onDependencyRemoval
File
-
core/
modules/ workflows/ src/ Entity/ Workflow.php, line 171
Class
- Workflow
- Defines the workflow entity.
Namespace
Drupal\workflows\EntityCode
public function onDependencyRemoval(array $dependencies) {
// Give the parent method and the workflow type plugin a chance to react
// to removed dependencies and report if either of these two made a change.
$parent_changed_entity = parent::onDependencyRemoval($dependencies);
$plugin_changed_entity = $this->getTypePlugin()
->onDependencyRemoval($dependencies);
return $plugin_changed_entity || $parent_changed_entity;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.