Issue #3250482 by quietone, daffie: The docblock of \Drupal\views\Plugin\views\cache\CachePluginBase::cacheSetMaxAge() is wrong

(cherry picked from commit 266fe1a75d)
merge-requests/1442/head
catch 2021-11-22 16:50:36 +00:00
parent af165d2a37
commit 4b233f806f
1 changed files with 6 additions and 5 deletions

View File

@ -81,13 +81,14 @@ abstract class CachePluginBase extends PluginBase {
}
/**
* Determine expiration time in the cache table of the cache type
* or CACHE_PERMANENT if item shouldn't be removed automatically from cache.
* Determine cache expiration time.
*
* Plugins must override this to implement expiration in the cache table.
* Plugins must override this to implement expiration in the cache table. The
* default is CACHE_PERMANENT, indicating that the item will not be removed
* automatically from cache.
*
* @param $type
* The cache type, either 'query', 'result'.
* @param string $type
* The cache type.
*/
protected function cacheSetMaxAge($type) {
return Cache::PERMANENT;