function RendererTest::providerTestRenderCacheMaxAge

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::providerTestRenderCacheMaxAge()
  2. 8.9.x core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::providerTestRenderCacheMaxAge()
  3. 11.x core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::providerTestRenderCacheMaxAge()

File

core/tests/Drupal/Tests/Core/Render/RendererTest.php, line 906

Class

RendererTest
@coversDefaultClass \Drupal\Core\Render\Renderer @group Render

Namespace

Drupal\Tests\Core\Render

Code

public static function providerTestRenderCacheMaxAge() {
    return [
        [
            0,
            FALSE,
            NULL,
        ],
        [
            60,
            TRUE,
            (int) $_SERVER['REQUEST_TIME'] + 60,
        ],
        [
            Cache::PERMANENT,
            TRUE,
            -1,
        ],
    ];
}

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