function RendererBubblingTest::providerTestBubblingWithPrerender

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

Provides two test elements: one without, and one with the theme system.

Return value

array

File

core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php, line 504

Class

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

Namespace

Drupal\Tests\Core\Render

Code

public static function providerTestBubblingWithPrerender() {
    $data = [];
    // Test element without theme.
    $data[] = [
        [
            'foo' => [
                '#pre_render' => [
                    __NAMESPACE__ . '\\BubblingTest::bubblingPreRender',
                ],
            ],
        ],
    ];
    // Test element with theme.
    $data[] = [
        [
            '#theme' => 'common_test_render_element',
            'foo' => [
                '#pre_render' => [
                    __NAMESPACE__ . '\\BubblingTest::bubblingPreRender',
                ],
            ],
        ],
    ];
    return $data;
}

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