<?php/**
* @file
* Definition of Drupal\views\Plugin\views\cache\None.
*/namespaceDrupal\views\Plugin\views\cache;
useDrupal\Component\Annotation\Plugin;
useDrupal\Core\Annotation\Translation;
/**
* Caching plugin that provides no caching at all.
*
* @ingroup views_cache_plugins
*
* @Plugin(
* id = "none",
* title = @Translation("None"),
* help = @Translation("No caching of Views data.")
* )
*/class Noneextends CachePluginBase {
public functioncacheStart() {
/* do nothing */
}
public functionsummaryTitle() {
returnt('None');
}
/**
* Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cacheGet().
*
* Replace the cache get logic so it does not return a cache item at all.
*/
public functioncacheGet($type) {
returnFALSE;
}
/**
* {@inheritdoc}
*
* Replace the cache set logic so it does not set a cache item at all.
*/
public functioncacheSet($type) {
}
}