You are here

public function WorkflowTransition::force in Workflow 8

Set if a transition must be executed, even if transition is invalid or user not authorized.

Parameters

bool $force:

Return value

object The transition itself.

Overrides WorkflowTransitionInterface::force

1 call to WorkflowTransition::force()
WorkflowTransition::execute in src/Entity/WorkflowTransition.php
Execute a transition (change state of an entity).

File

src/Entity/WorkflowTransition.php, line 860

Class

WorkflowTransition
Implements an actual, executed, Transition.

Namespace

Drupal\workflow\Entity

Code

public function force($force = TRUE) {
  $this->isForced = $force;
  return $this;
}