public function get($path, $default = null, $deep = false) { $result = parent::get($path, $default); if (null === $result && $default !== null && $this->has($path)) { $result = $default; } return $result; }
/** * @return string * * @throws \LogicException */ public function getGrid() { if (!$this->hasGrid()) { throw new \LogicException('Current action does not use grid.'); } return $this->parameters->get('grid'); }