public function StateMachine_Event::finish in State Machine 7
Same name and namespace in other branches
- 6 inc/base.inc \StateMachine_Event::finish()
- 7.3 inc/base.inc \StateMachine_Event::finish()
- 7.2 inc/base.inc \StateMachine_Event::finish()
Allow the event to finish after the machine has changed state.
File
Class
Code
public function finish() {
if (!empty($this->options['after_transition'])) {
call_user_func($this->options['after_transition']);
}
}