You are here

public function StateMachine_Event::can_transition_from in State Machine 6

Same name and namespace in other branches
  1. 7.3 inc/base.inc \StateMachine_Event::can_transition_from()
  2. 7 inc/base.inc \StateMachine_Event::can_transition_from()
  3. 7.2 inc/base.inc \StateMachine_Event::can_transition_from()

Can this event be used to transition from the specified state?

File

inc/base.inc, line 295

Class

StateMachine_Event

Code

public function can_transition_from($state) {
  return in_array($state, $this->options['origin']);
}