diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php index 763cf24..e1bed17 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewListController.php @@ -83,9 +83,11 @@ public function buildRow(EntityInterface $view) { return array( 'data' => array( 'view_name' => array( - '#theme' => 'views_ui_view_info', - '#view' => $view, - '#displays' => $this->getDisplaysList($view) + 'data' => array( + '#theme' => 'views_ui_view_info', + '#view' => $view, + '#displays' => $this->getDisplaysList($view) + ), ), 'description' => $view->get('description'), 'tag' => $view->get('tag'), diff --git a/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php b/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php index 61fa474..14b797f 100644 --- a/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php +++ b/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php @@ -94,7 +94,7 @@ public function testBuildRowEntityList() { $row = $view_list_controller->buildRow($view); - $this->assertEquals(array('Embed admin label', 'Page admin label'), $row['data']['view_name']['#displays'], 'Wrong displays got added to view list'); + $this->assertEquals(array('Embed admin label', 'Page admin label'), $row['data']['view_name']['data']['#displays'], 'Wrong displays got added to view list'); } }