Start caching the html head.
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.
See also
drupal_add_html_head()
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php, line 233
- 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();
}