You are here

public function StateMachine_State::get_option in State Machine 7.3

Same name and namespace in other branches
  1. 7.2 inc/base.inc \StateMachine_State::get_option()

Return a specific key value from the $options array.

Parameters

string $key: The options key.

Return value

mixed The value of the option or FALSE if the option wasn't found.

File

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

Class

StateMachine_State
Base class for states.

Code

public function get_option($key) {
  return array_key_exists($key, $this->options) ? $this->options[$key] : FALSE;
}