Search for setCacheMaxAge

  1. Search 7.x for setCacheMaxAge
  2. Search 9.5.x for setCacheMaxAge
  3. Search 10.3.x for setCacheMaxAge
  4. Search 11.x for setCacheMaxAge
  5. Other projects
Title Object type File name Summary
AccessResult::setCacheMaxAge function core/lib/Drupal/Core/Access/AccessResult.php Sets the maximum age for which this access result may be cached.
CacheableMetadata::setCacheMaxAge function core/lib/Drupal/Core/Cache/CacheableMetadata.php Sets the maximum age (in seconds).
CacheableMetadataTest::providerSetCacheMaxAge function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Data provider for testSetCacheMaxAge.
CacheableMetadataTest::testSetCacheMaxAge function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Test valid and invalid values as max age.

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