url = $url; } public function getId(): string { return Application::APP_ID; } public function getName(): string { return 'Radio'; } public function getOrder(string $route, array $routeParameters): int { if (strpos($route, 'files' . '.') === 0) { return 25; } elseif (strpos($route, Application::APP_ID . '.') === 0) { return -1; } return 4; } public function search(IUser $user, ISearchQuery $query): SearchResult { // create SearchResultEntry from Note $result = [new SearchResultEntry( '', 'SRF Virus', 'alternative, youth', $this->url->linkToRouteAbsolute('radio.page.index') . 'search/' . urlencode($query->getTerm()), // FIXME: urlencode working? 'icon-notes-trans' )]; return SearchResult::complete( $this->getName(), $result ); } }