protected function getModalLibrary()
    {
        // Get the current modal library
        if(($this->sModalLibrary) &&
            ($library = $this->getLibrary($this->sModalLibrary)) && ($library instanceof Modal))
        {
            return $library;
        }
        // Get the default modal library
        if(($sName = $this->getOption('dialogs.default.modal', '')) &&
            ($library = $this->getLibrary($sName)) && ($library instanceof Modal))
        {
            return $library;
        }
        return null;
    }
protected function getModalLibrary()
    {
        // Get the current modal library
        if(($this->sModalLibrary) &&
            ($library = $this->getLibrary($this->sModalLibrary)) && ($library instanceof Modal))
        {
            return $library;
        }
        // Get the default modal library
        if(($sName = $this->getOption('dialogs.default.modal', '')) &&
            ($library = $this->getLibrary($sName)) && ($library instanceof Modal))
        {
            return $library;
        }
        return null;
    }
protected function getModalLibrary ( ) { // Get the current modal library if ( ( $ this -> sModalLibrary ) && ( $ library = $ this -> getLibrary ( $ this -> sModalLibrary ) ) && ( $ library instanceof Modal ) ) { return $ library ; } // Get the default modal library if ( ( $ sName = $ this -> getOption ( 'dialogs.default.modal' , '' ) ) && ( $ library = $ this -> getLibrary ( $ sName ) ) && ( $ library instanceof Modal ) ) { return $ library ; } return null ; }
Get the library adapter to use for modals.

@return Libraries\Library|null
Get the library adapter to use for modals .