diff --git a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php index 55a637d..bdcb31b 100644 --- a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php +++ b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php @@ -249,9 +249,8 @@ protected function gatherHeaders(array $render_array = []) { $this->storage['head'] = ''; } - $attached = drupal_render_collect_attached($render_array, TRUE); - $this->storage['css'] = $attached['css']; - $this->storage['js'] = $attached['js']; + $this->storage['css'] = $render_array['#attached']['css']; + $this->storage['js'] = $render_array['#attached']['js']; } /**