public function unregisterAdapter($moduleId)
    {

        $registry = $this->getRegistry();
        $config = [];
        if ($registry->isRegistered(self::REGISTRY_ENTRY_KEY)) {
            $config = $registry->get(self::REGISTRY_ENTRY_KEY);
        }

        if (isset($config[self::PREVIEWERS_KEY]) && isset($config[self::PREVIEWERS_KEY][$moduleId])) {
            unset($config[self::PREVIEWERS_KEY][$moduleId]);
            $registry->set(self::REGISTRY_ENTRY_KEY, $config);
            return true;
        }
        return false;
    }
public function unregisterAdapter($moduleId)
    {

        $registry = $this->getRegistry();
        $config = [];
        if ($registry->isRegistered(self::REGISTRY_ENTRY_KEY)) {
            $config = $registry->get(self::REGISTRY_ENTRY_KEY);
        }

        if (isset($config[self::PREVIEWERS_KEY]) && isset($config[self::PREVIEWERS_KEY][$moduleId])) {
            unset($config[self::PREVIEWERS_KEY][$moduleId]);
            $registry->set(self::REGISTRY_ENTRY_KEY, $config);
            return true;
        }
        return false;
    }
public function unregisterAdapter ( $ moduleId ) { $ registry = $ this -> getRegistry ( ) ; $ config = [ ] ; if ( $ registry -> isRegistered ( self :: REGISTRY_ENTRY_KEY ) ) { $ config = $ registry -> get ( self :: REGISTRY_ENTRY_KEY ) ; } if ( isset ( $ config [ self :: PREVIEWERS_KEY ] ) && isset ( $ config [ self :: PREVIEWERS_KEY ] [ $ moduleId ] ) ) { unset ( $ config [ self :: PREVIEWERS_KEY ] [ $ moduleId ] ) ; $ registry -> set ( self :: REGISTRY_ENTRY_KEY , $ config ) ; return true ; } return false ; }
Unregisters a previewer adapter
@param string $moduleId
@return boolean true if unregistered
Unregisters a previewer adapter