public function CachePluginBase::cacheStart

Start caching the html head.

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

See also

drupal_add_html_head()

1 method overrides CachePluginBase::cacheStart()
None::cacheStart in drupal/core/modules/views/lib/Drupal/views/Plugin/views/cache/None.php
Start caching the html head.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php, line 218
Definition of Drupal\views\Plugin\views\cache\CachePluginBase.

Class

CachePluginBase
The base plugin to handle caching.

Namespace

Drupal\views\Plugin\views\cache

Code

public function cacheStart() {
  $this->storage['head'] = drupal_add_html_head();
}