diff --git a/src/Plugin/facets/facet_source/SearchApiDisplay.php b/src/Plugin/facets/facet_source/SearchApiDisplay.php index 0deb172..c02c1c0 100644 --- a/src/Plugin/facets/facet_source/SearchApiDisplay.php +++ b/src/Plugin/facets/facet_source/SearchApiDisplay.php @@ -430,7 +430,7 @@ class SearchApiDisplay extends FacetSourcePluginBase implements SearchApiFacetSo * {@inheritdoc} */ public function getCacheContexts() { - if ($view_display = $this->getViewsDisplay()->getDisplay()) { + if ($view_display = $this->getViewsDisplay()) { return $view_display ->getDisplay() ->getCacheMetadata() @@ -444,10 +444,10 @@ class SearchApiDisplay extends FacetSourcePluginBase implements SearchApiFacetSo * {@inheritdoc} */ public function getCacheTags() { - if ($view_display = $this->getViewsDisplay()->getDisplay()) { + if ($view_display = $this->getViewsDisplay()) { return Cache::mergeTags( - $view_display->getCacheMetadata()->getCacheTags(), - $this->getViewsDisplay()->getCacheTags() + $view_display->getDisplay()->getCacheMetadata()->getCacheTags(), + $view_display->getCacheTags() ); } @@ -458,10 +458,10 @@ class SearchApiDisplay extends FacetSourcePluginBase implements SearchApiFacetSo * {@inheritdoc} */ public function getCacheMaxAge() { - if ($view_display = $this->getViewsDisplay()->getDisplay()) { + if ($view_display = $this->getViewsDisplay()) { return Cache::mergeMaxAges( - $view_display->getCacheMetadata()->getCacheMaxAge(), - $view_display->getPlugin('cache')->getCacheMaxAge() + $view_display->getDisplay()->getCacheMetadata()->getCacheMaxAge(), + $view_display->getDisplay()->getPlugin('cache')->getCacheMaxAge() ); }