You are here

public function MetatagViewsCacheWrapper::cacheSet in Metatag 8

Save data to the cache.

A plugin should override this to provide specialized caching behavior.

Parameters

$type: The cache type, either 'query', 'result'.

Overrides CachePluginBase::cacheSet

File

metatag_views/src/MetatagViewsCacheWrapper.php, line 52

Class

MetatagViewsCacheWrapper
This class wraps a Views cache plugin.

Namespace

Drupal\metatag_views

Code

public function cacheSet($type) {
  if ($type === self::RESULTS) {
    $this->called = TRUE;
  }
  else {
    $this->plugin
      ->cacheSet($type);
  }
}