referenceHelper = $referenceHelper; $this->referenceManager = $referenceManager; $this->urlGenerator = $urlGenerator; $this->l10n = $l10n; } /** * @inheritDoc */ public function getId(): string { return Application::APP_ID . '-ref-tables'; } /** * @inheritDoc */ public function getTitle(): string { return $this->l10n->t('Nextcloud tables'); } /** * @inheritDoc */ public function getOrder(): int { return 10; } /** * @inheritDoc */ public function getIconUrl(): string { return $this->urlGenerator->getAbsoluteURL( $this->urlGenerator->imagePath(Application::APP_ID, 'app-dark.svg') ); } /** * @inheritDoc */ public function getSupportedSearchProviderIds(): array { // Not needed as we implement our own picker component // return ['tables-search-tables']; return []; } /** * @inheritDoc */ public function matchReference(string $referenceText): bool { return $this->referenceHelper->matchReference($referenceText); } /** * @inheritDoc */ public function resolveReference(string $referenceText): ?IReference { return $this->referenceHelper->resolveReference($referenceText); } /** * @inheritDoc */ public function getCachePrefix(string $referenceId): string { return $this->referenceHelper->getCachePrefix($referenceId); } /** * @inheritDoc */ public function getCacheKey(string $referenceId): ?string { return $this->referenceHelper->getCacheKey($referenceId); } /** * @param string $userId * @return void */ public function invalidateUserCache(string $userId): void { $this->referenceManager->invalidateCache($userId); } }