Skip to content
Snippets Groups Projects
Verified Commit ab4a2c7e authored by quietone's avatar quietone
Browse files

Issue #3480732 by debrup, joachim, gaurav gupta: Correct docs for CachePluginBase::cacheSetMaxAge()

(cherry picked from commit 4f04d687)
parent 46b3dc33
No related branches found
No related tags found
21 merge requests!12227Issue #3181946 by jonmcl, mglaman,!12079Issue #3523476 by matthiasm11: Add empty check on operator,!12024Fix: DocBlock comment for return value of Drupal\Core\Database\Connection::transactionManager(),!11974Draft: Issue #3495165 by catch, joeyroth, berdir, texas-bronius: Better warning...,!11934Issue #3520997: DefaultLazyPluginCollection unnecessarily instantiates plugins when sorting collection,!11887Issue #3520065: The migrate Row class API is incomplete,!11636Draft: Issue #3515643 by macsim: fieldNameExists method is inconsistent,!11515Issue #3480419 by mondrake, smustgrave, catch: Method...,!11380Issue #3490698 by catch, spokje: Bump MINIMUM_STABILITY back to 'stable' when...,!11281Use Drupal Core Leadership terminology in MAINTAINERS.txt,!11239Issue #3507548: Allow workspace changes listing to show all items, without a pager,!11238Fix issue #3051797,!11213Issue #3506743 by tomislav.matokovic: Increasing the color contrast for the navigation block title against the background of the navigation sidebar to at least 4.5:1,!11147Draft: Try to avoid manually setting required cache contexts,!11108Issue #3490298 by nicxvan: Profiles can be missed in OOP hooks,!11093Drupal on MongoDB 11.1.x,!11017Issue #3502540: Add date filter for moderated content.,!11009Issue #3486972 migrate feed icon,!10999Cleaning up Taxonomy hooks and updating baseline.,!10977Issue #3501457: Fix path used in a A11y Test Admin,!10881Issue #3489329 by mfb, casey: symfony/http-foundation commit 32310ff breaks PathValidator
Pipeline #372118 passed
Pipeline: drupal

#372120

    ......@@ -46887,12 +46887,6 @@
    'count' => 1,
    'path' => __DIR__ . '/modules/views/src/Plugin/views/cache/CachePluginBase.php',
    ];
    $ignoreErrors[] = [
    // identifier: missingType.return
    'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\cache\\\\CachePluginBase\\:\\:cacheSetMaxAge\\(\\) has no return type specified\\.$#',
    'count' => 1,
    'path' => __DIR__ . '/modules/views/src/Plugin/views/cache/CachePluginBase.php',
    ];
    $ignoreErrors[] = [
    // identifier: missingType.return
    'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\cache\\\\CachePluginBase\\:\\:getDefaultCacheMaxAge\\(\\) has no return type specified\\.$#',
    ......@@ -46953,12 +46947,6 @@
    'count' => 1,
    'path' => __DIR__ . '/modules/views/src/Plugin/views/cache/Time.php',
    ];
    $ignoreErrors[] = [
    // identifier: missingType.return
    'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\cache\\\\Time\\:\\:cacheSetMaxAge\\(\\) has no return type specified\\.$#',
    'count' => 1,
    'path' => __DIR__ . '/modules/views/src/Plugin/views/cache/Time.php',
    ];
    $ignoreErrors[] = [
    // identifier: missingType.return
    'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\cache\\\\Time\\:\\:getDefaultCacheMaxAge\\(\\) has no return type specified\\.$#',
    ......@@ -82,14 +82,17 @@ protected function cacheExpire($type) {
    }
    /**
    * Determine cache expiration time.
    * Determines cache expiration time based on its type.
    *
    * 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.
    * Plugins must override this to implement expiration in the cache table.
    *
    * @param string $type
    * The cache type.
    *
    * @return int
    * Either an offset from the request time to indicate when the cache
    * expires, or \Drupal\Core\Cache\Cache::PERMANENT to indicate that the
    * cache does not expire. Defaults to \Drupal\Core\Cache\Cache::PERMANENT.
    */
    protected function cacheSetMaxAge($type) {
    return Cache::PERMANENT;
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment