directEditingService = $directEditingService; $this->urlGenerator = $urlGenerator; } /** * @return array{files: array{directEditing: array{url: string, etag: string, supportsFileId: bool}}} */ public function getCapabilities() { return [ 'files' => [ 'directEditing' => [ 'url' => $this->urlGenerator->linkToOCSRouteAbsolute('files.DirectEditing.info'), 'etag' => $this->directEditingService->getDirectEditingETag(), 'supportsFileId' => true, ] ], ]; } }