diff --git a/core/modules/views/src/Plugin/CacheablePluginInterface.php b/core/modules/views/src/Plugin/CacheablePluginInterface.php index 86175a9..847af59 100644 --- a/core/modules/views/src/Plugin/CacheablePluginInterface.php +++ b/core/modules/views/src/Plugin/CacheablePluginInterface.php @@ -19,4 +19,4 @@ public function isCacheable(); */ public function getCacheContexts(); - } +} diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index 6274709..5a63379 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php @@ -2239,7 +2239,7 @@ public function getCacheInformation () { // Iterate over all handles. Note that at least the argument handler will // need to ask all its subplugins. - foreach (Views::getPluginTypes('handler') as $handler_type) { + foreach (array_keys(Views::getHandlerTypes()) as $handler_type) { $handlers = $this->getHandlers($handler_type); foreach ($handlers as $handler) { if ($handler instanceof CacheablePluginInterface) { @@ -2249,7 +2249,7 @@ public function getCacheInformation () { } } - return [$cacheable, $cache_contexts]; + return [$cache_contexts, $cacheable]; } /**