You are here

function CachePluginBase::cache_start in Views (for Drupal 7) 8.3

Start caching javascript, css and other out of band info.

This takes a snapshot of the current system state so that we don't duplicate it. Later on, when gather_headers() is run, this information will be removed so that we don't hold onto it.

1 method overrides CachePluginBase::cache_start()
None::cache_start in lib/Drupal/views/Plugin/views/cache/None.php
Start caching javascript, css and other out of band info.

File

lib/Drupal/views/Plugin/views/cache/CachePluginBase.php, line 231
Definition of Drupal\views\Plugin\views\cache\CachePluginBase.

Class

CachePluginBase
The base plugin to handle caching.

Namespace

Drupal\views\Plugin\views\cache

Code

function cache_start() {
  $this->storage['head'] = drupal_add_html_head();
  $this->storage['css'] = drupal_add_css();
  $this->storage['js'] = drupal_add_js();
}