function 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 589  
Class
- RendererBubblingTest
 - @coversDefaultClass \Drupal\Core\Render\Renderer[[api-linebreak]] @group Render
 
Namespace
Drupal\Tests\Core\RenderCode
public 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.