public function getPortableType()
    {
        $type = false;
        switch ($this->getFieldXType()) {
            case 'modx-combo-template':
                $type = 'template';
                break;

            case 'modx-combo-source':
                $type = 'media-source';
                break;

            default:
                if (isset($this->portable_settings[$this->getFieldKey()])) {
                    $type = $this->portable_settings[$this->getFieldKey()];
                }
        }
        return $type;
    }
public function getPortableType()
    {
        $type = false;
        switch ($this->getFieldXType()) {
            case 'modx-combo-template':
                $type = 'template';
                break;

            case 'modx-combo-source':
                $type = 'media-source';
                break;

            default:
                if (isset($this->portable_settings[$this->getFieldKey()])) {
                    $type = $this->portable_settings[$this->getFieldKey()];
                }
        }
        return $type;
    }
public function getPortableType ( ) { $ type = false ; switch ( $ this -> getFieldXType ( ) ) { case 'modx-combo-template' : $ type = 'template' ; break ; case 'modx-combo-source' : $ type = 'media-source' ; break ; default : if ( isset ( $ this -> portable_settings [ $ this -> getFieldKey ( ) ] ) ) { $ type = $ this -> portable_settings [ $ this -> getFieldKey ( ) ] ; } } return $ type ; }
Don't call this until the key is set or setting is loaded
@return bool|string
Don t call this until the key is set or setting is loaded