/** * Get the current GridState_Data or the GridState. * * @param bool $getData * * @return GridState_Data|GridState */ public function getState($getData = true) { if ($getData) { return $this->state->getData(); } return $this->state; }