/** * Prepare the layout, if any. * * If the params contains a non-empty 'layout' variable, that value * will be used to seed a layout * * If a layout is discovered in this way, it will override the one set in * the constructor, if any. * * @param array $params * @return null */ private function prepareLayout($params) { if (isset($params['layout'])) { $this->layout = $params['layout']; } $this->renderer->setLayout($this->layout); }