invalidId = $invalidId; $this ->setIdentifier($invalidId) ->setStorageClass('\OC\Files\Storage\FailedStorage') ->setText('Unknown storage backend ' . $invalidId); } /** * Returns the invalid backend id * * @return string invalid backend id */ public function getInvalidId() { return $this->invalidId; } /** * @return void */ public function manipulateStorageConfig(StorageConfig &$storage, ?IUser $user = null) { $storage->setBackendOption('exception', new \Exception('Unknown storage backend "' . $this->invalidId . '"', StorageNotAvailableException::STATUS_ERROR)); } }