Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views / src / Plugin / views / cache / None.php
1 <?php
2
3 namespace Drupal\views\Plugin\views\cache;
4
5 /**
6  * Caching plugin that provides no caching at all.
7  *
8  * @ingroup views_cache_plugins
9  *
10  * @ViewsCache(
11  *   id = "none",
12  *   title = @Translation("None"),
13  *   help = @Translation("No caching of Views data.")
14  * )
15  */
16 class None extends CachePluginBase {
17
18   public function summaryTitle() {
19     return $this->t('None');
20   }
21
22
23   /**
24    * Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cacheGet().
25    *
26    * Replace the cache get logic so it does not return a cache item at all.
27    */
28   public function cacheGet($type) {
29     return FALSE;
30   }
31
32   /**
33    * {@inheritdoc}
34    *
35    * Replace the cache set logic so it does not set a cache item at all.
36    */
37   public function cacheSet($type) {
38   }
39
40 }