public function registerAdapter(DynamicModule $module)
    {
        if(!is_null($module) && ! empty($module->getModule()) ) {

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

            $config[self::PREVIEWERS_KEY][$module->getModule()] = $module->toArray();
            $registry->set(self::REGISTRY_ENTRY_KEY, $config);
            return true;
        }
        return false;
    }
public function registerAdapter(DynamicModule $module)
    {
        if(!is_null($module) && ! empty($module->getModule()) ) {

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

            $config[self::PREVIEWERS_KEY][$module->getModule()] = $module->toArray();
            $registry->set(self::REGISTRY_ENTRY_KEY, $config);
            return true;
        }
        return false;
    }
public function registerAdapter ( DynamicModule $ module ) { if ( ! is_null ( $ module ) && ! empty ( $ module -> getModule ( ) ) ) { $ registry = $ this -> getRegistry ( ) ; $ config = [ ] ; if ( $ registry -> isRegistered ( self :: REGISTRY_ENTRY_KEY ) ) { $ config = $ registry -> get ( self :: REGISTRY_ENTRY_KEY ) ; } $ config [ self :: PREVIEWERS_KEY ] [ $ module -> getModule ( ) ] = $ module -> toArray ( ) ; $ registry -> set ( self :: REGISTRY_ENTRY_KEY , $ config ) ; return true ; } return false ; }
Registers a previewer adapter
@param DynamicModule $module the plugin to register
@return boolean true if registered
Registers a previewer adapter