You are here

public function WorkflowTransition::getFromSid in Workflow 8

Return value

string

Overrides WorkflowConfigTransitionInterface::getFromSid

8 calls to WorkflowTransition::getFromSid()
WorkflowScheduledTransition::save in src/Entity/WorkflowScheduledTransition.php
Saves a scheduled transition. If the transition is executed, save in history.
WorkflowTransition::execute in src/Entity/WorkflowTransition.php
Execute a transition (change state of an entity).
WorkflowTransition::executeAndUpdateEntity in src/Entity/WorkflowTransition.php
Executes a transition (change state of an entity), from OUTSIDE the entity.
WorkflowTransition::getFromState in src/Entity/WorkflowTransition.php
WorkflowTransition::isAllowed in src/Entity/WorkflowTransition.php
Determines if the current transition between 2 states is allowed.

... See full list

File

src/Entity/WorkflowTransition.php, line 747

Class

WorkflowTransition
Implements an actual, executed, Transition.

Namespace

Drupal\workflow\Entity

Code

public function getFromSid() {
  $sid = $this->{'from_sid'}->target_id;
  return $sid;
}