protected function evalManageTitle()
    {
        if ($customTitle = $this->getConfig('manage[title]')) {
            return $customTitle;
        }

        switch ($this->manageMode) {
            case 'pivot':
            case 'list':
                if ($this->eventTarget == 'button-link') {
                    return 'backend::lang.relation.link_a_new';
                }

                return 'backend::lang.relation.add_a_new';
            case 'form':
                if ($this->readOnly) {
                    return 'backend::lang.relation.preview_name';
                }
                elseif ($this->manageId) {
                    return 'backend::lang.relation.update_name';
                }
                else {
                    return 'backend::lang.relation.create_name';
                }
        }
    }
protected function evalManageTitle()
    {
        if ($customTitle = $this->getConfig('manage[title]')) {
            return $customTitle;
        }

        switch ($this->manageMode) {
            case 'pivot':
            case 'list':
                if ($this->eventTarget == 'button-link') {
                    return 'backend::lang.relation.link_a_new';
                }

                return 'backend::lang.relation.add_a_new';
            case 'form':
                if ($this->readOnly) {
                    return 'backend::lang.relation.preview_name';
                }
                elseif ($this->manageId) {
                    return 'backend::lang.relation.update_name';
                }
                else {
                    return 'backend::lang.relation.create_name';
                }
        }
    }
protected function evalManageTitle ( ) { if ( $ customTitle = $ this -> getConfig ( 'manage[title]' ) ) { return $ customTitle ; } switch ( $ this -> manageMode ) { case 'pivot' : case 'list' : if ( $ this -> eventTarget == 'button-link' ) { return 'backend::lang.relation.link_a_new' ; } return 'backend::lang.relation.add_a_new' ; case 'form' : if ( $ this -> readOnly ) { return 'backend::lang.relation.preview_name' ; } elseif ( $ this -> manageId ) { return 'backend::lang.relation.update_name' ; } else { return 'backend::lang.relation.create_name' ; } } }
Determine the management mode popup title.
@return string
Determine the management mode popup title .