You are here

protected property ViewPageControllerTest::$defaultRenderArray in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php \Drupal\Tests\views\Unit\Routing\ViewPageControllerTest::defaultRenderArray

A render array expected for every page controller render array result.

Type: array

File

core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php, line 31

Class

ViewPageControllerTest
@coversDefaultClass \Drupal\views\Routing\ViewPageController @group views

Namespace

Drupal\Tests\views\Unit\Routing

Code

protected $defaultRenderArray = [
  '#cache_properties' => [
    '#view_id',
    '#view_display_show_admin_links',
    '#view_display_plugin_id',
  ],
  '#view_id' => 'test_page_view',
  '#view_display_plugin_id' => NULL,
  '#view_display_show_admin_links' => NULL,
];