RendererTestBase::$rendererConfig

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\RendererTestBase::rendererConfig
  2. 10 core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\RendererTestBase::rendererConfig
  3. 11.x core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\RendererTestBase::rendererConfig

The mocked renderer configuration.

Type: array

File

core/tests/Drupal/Tests/Core/Render/RendererTestBase.php, line 102

Class

RendererTestBase
Base class for the actual unit tests testing \Drupal\Core\Render\Renderer.

Namespace

Drupal\Tests\Core\Render

Code

protected $rendererConfig = [
    'required_cache_contexts' => [
        'languages:language_interface',
        'theme',
    ],
    'auto_placeholder_conditions' => [
        'max-age' => 0,
        'contexts' => [
            'session',
            'user',
        ],
        'tags' => [
            'current-temperature',
        ],
    ],
];

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