RendererTestBase::$rendererConfig

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\RendererTestBase::rendererConfig
  2. 8.9.x core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\RendererTestBase::rendererConfig
  3. 10 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 110

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',
        ],
    ],
    'debug' => FALSE,
];

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