lib/components/web/widgets/decorator/PanelDecorator.php
public function generatePanelTitle()
    {
        $parts = [];
        if ($this->owner->title) {
            $menu = $icon = null;
            $titleMenu = $this->owner->generateTitleMenu();
            if ($titleMenu) {
                $menu = $titleMenu;
            }
            if (!empty($this->owner->icon)) {
                $icon = Html::tag('i', '', ['class' => 'panel-icon ' . $this->owner->icon]) . Html::tag('span', '', ['class' => 'break']);
            }
            $parts[] = Html::tag('div', Html::tag('h2', $icon . $this->owner->parseText($this->owner->title)) . $menu, ['class' => 'panel-heading']);
        }
        if (empty($parts)) {
            return false;
        }

        return implode("", $parts);
    }
public function generatePanelTitle()
    {
        $parts = [];
        if ($this->owner->title) {
            $menu = $icon = null;
            $titleMenu = $this->owner->generateTitleMenu();
            if ($titleMenu) {
                $menu = $titleMenu;
            }
            if (!empty($this->owner->icon)) {
                $icon = Html::tag('i', '', ['class' => 'panel-icon ' . $this->owner->icon]) . Html::tag('span', '', ['class' => 'break']);
            }
            $parts[] = Html::tag('div', Html::tag('h2', $icon . $this->owner->parseText($this->owner->title)) . $menu, ['class' => 'panel-heading']);
        }
        if (empty($parts)) {
            return false;
        }

        return implode("", $parts);
    }
[[@doctodo method_description:generatePanelTitle]].

@return [[@doctodo return_type:generatePanelTitle]] [[@doctodo return_description:generatePanelTitle]]