From 6015591bf334e83d9ac80ca19886394468357a26 Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Wed, 30 Oct 2024 09:06:44 -0400 Subject: [PATCH] Add Drupal 11 support --- advanced_search.info.yml | 2 +- src/EventSubscriber/PostConvertedQueryEventSubscriber.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced_search.info.yml b/advanced_search.info.yml index 11e8f24..60807c7 100644 --- a/advanced_search.info.yml +++ b/advanced_search.info.yml @@ -4,7 +4,7 @@ name: 'Advanced Search' description: "Creates an Advanced Search block and other enhancements to search." type: module package: Islandora -core_version_requirement: ^8.8 || ^9 || ^10 +core_version_requirement: ^8.8 || ^9 || ^10 || ^11 dependencies: - drupal:facets - drupal:facets_summary diff --git a/src/EventSubscriber/PostConvertedQueryEventSubscriber.php b/src/EventSubscriber/PostConvertedQueryEventSubscriber.php index 2781c69..f45479b 100644 --- a/src/EventSubscriber/PostConvertedQueryEventSubscriber.php +++ b/src/EventSubscriber/PostConvertedQueryEventSubscriber.php @@ -17,7 +17,7 @@ class PostConvertedQueryEventSubscriber implements EventSubscriberInterface { /** * {@inheritdoc} */ - public static function getSubscribedEvents() { + public static function getSubscribedEvents(): array { $events[SearchAPISolrEvents::POST_CONVERT_QUERY][] = ['alter']; return $events;