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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

neclimdul created an issue. See original summary.

neclimdul’s picture

Status: Active » Needs review
FileSize
621 bytes

Something like this.

legolasbo’s picture

Status: Needs review » Needs work

I 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.

marcoweijenborg’s picture

I created a new patch, the example hook is updated now.

marcoweijenborg’s picture

Status: Needs work » Needs review
legolasbo’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me, assuming testbot agrees.

neclimdul’s picture

Sorry I hadn't got back around to this. Thanks! Looks good to me too.

borisson_’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

Patch no longer applies.

legolasbo’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: -Needs reroll
FileSize
3.55 KB

Rerolled.

legolasbo’s picture

Status: Reviewed & tested by the community » Needs review

Oops, wrong status

Status: Needs review » Needs work

The last submitted patch, 9: 3018033-9.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

legolasbo’s picture

Status: Needs work » Needs review
FileSize
3.88 KB

Missed a spot, this should work better.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC, will commit over the weekend or during dev days.

  • borisson_ committed d433b62 on 8.x-1.x authored by legolasbo
    Issue #3018033 by legolasbo, neclimdul, marcoweijenborg: Pass page...
borisson_’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.