public function hasButton()
    {
        if (!empty($this->getButtonLabel())) {
            return true;
        }

        foreach ($this->tabs as $tab) {
            if (!empty($tab->getButtonLabel())) {
                return true;
            }
        }

        return false;
    }
public function hasButton()
    {
        if (!empty($this->getButtonLabel())) {
            return true;
        }

        foreach ($this->tabs as $tab) {
            if (!empty($tab->getButtonLabel())) {
                return true;
            }
        }

        return false;
    }
public function hasButton ( ) { if ( ! empty ( $ this -> getButtonLabel ( ) ) ) { return true ; } foreach ( $ this -> tabs as $ tab ) { if ( ! empty ( $ tab -> getButtonLabel ( ) ) ) { return true ; } } return false ; }
Returns whether the tabs needs a button.

@return bool
Returns whether the tabs needs a button .