public function WorkflowTransitionInterface::execute in Workflow 8
Execute a transition (change state of an entity).
A Scheduled Transition shall only be saved, unless the 'schedule' property is set.
@usage $transition->schedule(FALSE); $to_sid = $transition->execute(TRUE);
Parameters
bool $force: If set to TRUE, workflow permissions will be ignored.
Return value
string New state ID. If execution failed, old state ID is returned,
1 method overrides WorkflowTransitionInterface::execute()
- WorkflowTransition::execute in src/
Entity/ WorkflowTransition.php - Execute a transition (change state of an entity).
File
- src/
Entity/ WorkflowTransitionInterface.php, line 90
Class
- WorkflowTransitionInterface
- Defines a common interface for Workflow*Transition* objects.
Namespace
Drupal\workflow\EntityCode
public function execute($force = FALSE);