You are here

public function WorkflowTransition::getFromState in Workflow 8

Return value

WorkflowState

Overrides WorkflowConfigTransitionInterface::getFromState

3 calls to WorkflowTransition::getFromState()
WorkflowTransition::isRevertable in src/Entity/WorkflowTransition.php
Returns if this is a revertable Transition on the History tab.
WorkflowTransition::isValid in src/Entity/WorkflowTransition.php
Determines if the Transition is valid and can be executed.
WorkflowTransition::logError in src/Entity/WorkflowTransition.php
Generate a Watchdog error.

File

src/Entity/WorkflowTransition.php, line 731

Class

WorkflowTransition
Implements an actual, executed, Transition.

Namespace

Drupal\workflow\Entity

Code

public function getFromState() {
  $sid = $this
    ->getFromSid();
  return $sid ? WorkflowState::load($sid) : NULL;
}