Created
August 15, 2018 16:34
-
-
Save hudo2007/05a4f4f563846ce1ee9dcf56264d5984 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_views_pre_view(). | |
*/ | |
function cgap_search_views_pre_view(ViewExecutable $view, $display_id, array &$args) { | |
$view->element['#cache']['contexts'] = ['url.path', 'url.query_args']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment