Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. QueryPluginBase.php

function QueryPluginBase::getCacheMaxAge

Overrides CacheableDependencyInterface::getCacheMaxAge

2 calls to QueryPluginBase::getCacheMaxAge()
Sql::getCacheMaxAge in core/modules/views/src/Plugin/views/query/Sql.php
The maximum age for which this object may be cached.
Sql::getCacheMaxAge in core/modules/views/src/Plugin/views/query/Sql.php
The maximum age for which this object may be cached.
1 method overrides QueryPluginBase::getCacheMaxAge()
Sql::getCacheMaxAge in core/modules/views/src/Plugin/views/query/Sql.php
The maximum age for which this object may be cached.

File

core/modules/views/src/Plugin/views/query/QueryPluginBase.php, line 341

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

public function getCacheMaxAge() {
    return Cache::PERMANENT;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal