/** * * {@inheritDoc} * * @see \Core\Html\Bootstrap\Panel\AbstractPanelElement::build() */ public function build() { if (!empty($this->title)) { $this->inner = $this->title->build(); } return parent::build(); }
/** * Creates a PanelTitle object, adds it by default as title to use in the heading and returns a reference to it * * @param string $text * Optional text to fill in as title content. * @param boolean $autoadd * Optional flag to dis-/enable autoadd of created object as title object * * @return \Core\Html\Bootstrap\Panel\PanelTitle */ public function &createTitle($text = '', $autoadd = true) { $title = new PanelTitle(); if (!empty($text)) { $title->setTitle($text); } if ($autoadd) { $this->title = $title; } return $title; }