None.php

Same filename in this branch
  1. 9 core/modules/views/src/Plugin/views/argument_validator/None.php
  2. 9 core/modules/views/src/Plugin/views/access/None.php
  3. 9 core/modules/views/src/Plugin/views/pager/None.php
Same filename in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/argument_validator/None.php
  2. 8.9.x core/modules/views/src/Plugin/views/cache/None.php
  3. 8.9.x core/modules/views/src/Plugin/views/access/None.php
  4. 8.9.x core/modules/views/src/Plugin/views/pager/None.php
  5. 10 core/modules/views/src/Plugin/views/argument_validator/None.php
  6. 10 core/modules/views/src/Plugin/views/cache/None.php
  7. 10 core/modules/views/src/Plugin/views/access/None.php
  8. 10 core/modules/views/src/Plugin/views/pager/None.php
  9. 11.x core/modules/views/src/Plugin/views/argument_validator/None.php
  10. 11.x core/modules/views/src/Plugin/views/cache/None.php
  11. 11.x core/modules/views/src/Plugin/views/access/None.php
  12. 11.x core/modules/views/src/Plugin/views/pager/None.php

Namespace

Drupal\views\Plugin\views\cache

File

core/modules/views/src/Plugin/views/cache/None.php

View source
<?php

namespace Drupal\views\Plugin\views\cache;


/**
 * Caching plugin that provides no caching at all.
 *
 * @ingroup views_cache_plugins
 *
 * @ViewsCache(
 *   id = "none",
 *   title = @Translation("None"),
 *   help = @Translation("No caching of Views data.")
 * )
 */
class None extends CachePluginBase {
    public function summaryTitle() {
        return $this->t('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 function cacheGet($type) {
        return FALSE;
    }
    
    /**
     * {@inheritdoc}
     *
     * Replace the cache set logic so it does not set a cache item at all.
     */
    public function cacheSet($type) {
    }

}

Classes

Title Deprecated Summary
None Caching plugin that provides no caching at all.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.