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.
Problem/Motivation
I have run into a situation where it would be greatly beneficial for the Search API Page theme to be place _before_ the alter request in SearchApiPageController.php. If it is added before the call to alter the $build
variable, then I am able to nest the Search API Page render array inside another template and even add to it if I need to.
Proposed resolution
Move the #theme
declaration so it occurs before the module alter call.
Remaining tasks
Attach a patch (forthcoming).
Comment | File | Size | Author |
---|---|---|---|
#2 | allow_altering_a_search-2896053-2.patch | 599 bytes | merauluka |
|
Comments
Comment #2
merauluka CreditAttribution: merauluka at Mediacurrent commentedComment #3
DamienMcKennaComment #4
borisson_Comment #7
drunken monkeyCommitted.
Thanks, everyone!