You are here

public function StateMachine_Event::can_transition_from in State Machine 7

Same name and namespace in other branches
  1. 6 inc/base.inc \StateMachine_Event::can_transition_from()
  2. 7.3 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 298
base.inc

Class

StateMachine_Event

Code

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