Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. diff --git a/src/Plugin/views/exposed_form/BetterExposedFilters.php b/src/Plugin/views/exposed_form/BetterExposedFilters.php
  2. index f4ce19d..ed16519 100644
  3. --- a/src/Plugin/views/exposed_form/BetterExposedFilters.php
  4. +++ b/src/Plugin/views/exposed_form/BetterExposedFilters.php
  5. @@ -623,8 +623,6 @@ Title Desc|Z -> A</pre> Leave the replacement text blank to remove an option alt
  6. parent::validateOptionsForm($form, $form_state);
  7. }
  8.  
  9. -
  10. -
  11. /**
  12. * @inheritdoc
  13. */
  14. @@ -1634,4 +1632,13 @@ Title Desc|Z -> A</pre> Leave the replacement text blank to remove an option alt
  15. return $url;
  16. }
  17.  
  18. + /**
  19. + * {@inheritdoc}
  20. + */
  21. + public function getCacheContexts() {
  22. + $contexts = parent::getCacheContexts();
  23. + if ($this->options['bef']['sort']['advanced']['combine']) $contexts[] = 'url.query_args:sort_bef_combine';
  24. +
  25. + return $contexts;
  26. + }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement