Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Respect the submission guidelines above! Drupal.org issue forks cause additional work for the project maintainer!
Setup
- Solr version: 8.8.1
- Drupal Core version: 9.1.4
- Search API version: 1.19.0
- Search API Solr version: 4.1.11
- Configured Solr Connector:
Issue
Deprecated hook_search_api_views_handler_mapping_alter()
is implemented causing
The deprecated alter hook hook_search_api_views_handler_mapping_alter() is implemented in these functions: search_api_solr_search_api_views_handler_mapping_alter. This hook is deprecated in search_api:8.x-1.14 and is removed from search_api:2.0.0. Please use the \"search_api.mapping_views_handlers\" event instead. See https://www.drupal.org/node/3059866
Comment | File | Size | Author |
---|---|---|---|
#6 | 3207690.patch | 3.83 KB | mkalkbrenner |
#5 | 3207690-5.patch | 3.72 KB | KapilV |
#3 | 3207690-3.patch | 3.48 KB | guilhermevp |
Comments
Comment #2
guilhermevp CreditAttribution: guilhermevp at CI&T commentedComment #3
guilhermevp CreditAttribution: guilhermevp at CI&T commentedSending patch, please review!
Comment #4
mkalkbrennerThanks for the patch. It already looks good. But we need to change some things:
This class has to be named \Drupal\search_api_solr\EventSubscriber\SearchApiSubscriber
Add this code block before "return":
Comment #5
KapilV CreditAttribution: KapilV as a volunteer and at Innoraft for Drupal Care, Drupal Association commentedComment #6
mkalkbrenner#5 still has issues with the namespace and function names.
Here's an adjusted patch.
Comment #7
mkalkbrennerThe patch doesn't work. It seems that nobody here tested the patch :-(
Comment #9
mkalkbrennerComment #10
mkalkbrenner