You are here

public function StateMachine_Event::finish in State Machine 7.3

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

Allow the event to finish after the machine has changed state.

File

inc/base.inc, line 426
Defines the base classes of the state machine.

Class

StateMachine_Event
Base class for events.

Code

public function finish() {
  if (!empty($this->options['after_transition'])) {
    call_user_func($this->options['after_transition']);
  }
}