function WorkflowTypeBase::deleteTransition
Same name in other branches
- 8.9.x core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::deleteTransition()
- 10 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::deleteTransition()
- 11.x core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::deleteTransition()
Overrides WorkflowTypeInterface::deleteTransition
1 call to WorkflowTypeBase::deleteTransition()
- WorkflowTypeBase::deleteState in core/
modules/ workflows/ src/ Plugin/ WorkflowTypeBase.php - Deletes a state from the workflow.
File
-
core/
modules/ workflows/ src/ Plugin/ WorkflowTypeBase.php, line 440
Class
- WorkflowTypeBase
- A base class for Workflow type plugins.
Namespace
Drupal\workflows\PluginCode
public function deleteTransition($transition_id) {
if (!$this->hasTransition($transition_id)) {
throw new \InvalidArgumentException("The transition '{$transition_id}' does not exist in workflow.");
}
unset($this->configuration['transitions'][$transition_id]);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.