You are here

public function WorkflowConfigTransition::hasStateChange in Workflow 8

Determines if the State changes by this Transition.

Return value

bool TRUE if this Transition changes the state value.

Overrides WorkflowConfigTransitionInterface::hasStateChange

File

src/Entity/WorkflowConfigTransition.php, line 246

Class

WorkflowConfigTransition
Workflow configuration entity to persistently store configuration.

Namespace

Drupal\workflow\Entity

Code

public function hasStateChange() {
  if ($this->from_sid == $this->to_sid) {
    return FALSE;
  }
  return TRUE;
}