yii\bootstrap\Tabs::hasActiveTab PHP Method

hasActiveTab() protected method

protected hasActiveTab ( ) : boolean
return boolean if there's active tab defined
    protected function hasActiveTab()
    {
        foreach ($this->items as $item) {
            if (isset($item['active']) && $item['active'] === true) {
                return true;
            }
        }
        return false;
    }