You are here

protected function Workflow::rebuildStateInactive in Workflow 7.2

Handle a state becoming inactive during a rebuild.

1 call to Workflow::rebuildStateInactive()
Workflow::rebuildInternals in includes/Entity/Workflow.php
Rebuild internals that get saved separately.

File

includes/Entity/Workflow.php, line 220
Contains workflow\includes\Entity\Workflow. Contains workflow\includes\Entity\WorkflowController.

Class

Workflow

Code

protected function rebuildStateInactive($state) {
  if (!$state
    ->isActive()) {
    return;
  }

  // TODO: What should we do in this case? Is this safe?
  $state
    ->deactivate(NULL);
}