You are here

public function StateMachine_State::is_published in State Machine 7.3

Check if this state is published.

File

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

Class

StateMachine_State
Base class for states.

Code

public function is_published() {
  if (!empty($this->options['on_enter'])) {
    return in_array('on_enter_published', $this->options['on_enter']);
  }
  return FALSE;
}