/** * Render this option AND its required siblings * * @param boolean $output Whether to output or return result * @return string|void */ public function render($output = true) { // render myself first $html = parent::render($output); // render options that require this one foreach ($this->policy()->registry()->get_siblings($this) as $sibling_option) { $html .= $sibling_option->render($output); } // return result return $output ? true : $html; }