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::testSetCacheMaxAge |
function |
core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php |
Tests valid and invalid values as max age. |
CacheableMetadataTest::providerSetCacheMaxAge |
function |
core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php |
Data provider for testSetCacheMaxAge. |