setIdentifier('local') ->addIdentifierAlias('\OC\Files\Storage\Local') // legacy compat ->setStorageClass('\OC\Files\Storage\Local') ->setText($l->t('Local')) ->addParameters([ new DefinitionParameter('datadir', $l->t('Location')), ]) ->setAllowedVisibility(BackendService::VISIBILITY_ADMIN) ->setPriority(BackendService::PRIORITY_DEFAULT + 50) ->addAuthScheme(AuthMechanism::SCHEME_NULL) ->setLegacyAuthMechanism($legacyAuth) ; } public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user = null): void { $storage->setBackendOption('isExternal', true); } }