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.
It would be really handy to get the page entity passed to hook_search_api_page_alter so a developer/site builder could alter based specific pages or page specific criteria.
Comment | File | Size | Author |
---|---|---|---|
#12 | 3018033-12.patch | 3.88 KB | legolasbo |
| |||
#9 | 3018033-9.patch | 3.55 KB | legolasbo |
#4 | search_api_page-pass-page-entity-alter-2.patch | 1.54 KB | marcoweijenborg |
| |||
#2 | search_api_page-pass-page-entity-alter.patch | 621 bytes | neclimdul |
|
Comments
Comment #2
neclimdulSomething like this.
Comment #3
legolasboI agree that knowing the page configuration could be useful for users. The patch does need some work though, because the example hook in
search_api_page.api.php
also needs to be updated.Comment #4
marcoweijenborg CreditAttribution: marcoweijenborg at Ordina Digital Services commentedI created a new patch, the example hook is updated now.
Comment #5
marcoweijenborg CreditAttribution: marcoweijenborg as a volunteer commentedComment #6
legolasboLooks good to me, assuming testbot agrees.
Comment #7
neclimdulSorry I hadn't got back around to this. Thanks! Looks good to me too.
Comment #8
borisson_Patch no longer applies.
Comment #9
legolasboRerolled.
Comment #10
legolasboOops, wrong status
Comment #12
legolasboMissed a spot, this should work better.
Comment #13
borisson_Back to RTBC, will commit over the weekend or during dev days.
Comment #15
borisson_Committed and pushed.