diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php index 108e683..85c544c 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php @@ -53,7 +53,7 @@ public function testStyle() { $view->initStyle(); $view->style_plugin->setUsesRowPlugin(TRUE); // Reinitialize the style as it supports row plugins now. - $view->style_plugin->init($view, $view->display_handler, array()); + $view->style_plugin->init($view, $view->display_handler); $this->assertTrue($view->style_plugin->row_plugin instanceof \Drupal\views_test_data\Plugin\views\row\RowTest, 'Make sure the right row plugin class is loaded.'); $random_text = $this->randomName(); diff --git a/core/modules/views/views_ui/admin.inc b/core/modules/views/views_ui/admin.inc index 7f08067..1f3377c 100644 --- a/core/modules/views/views_ui/admin.inc +++ b/core/modules/views/views_ui/admin.inc @@ -1554,7 +1554,7 @@ function views_ui_config_item_form_submit_temporary($form, &$form_state) { // Create a new handler and unpack the options from the form onto it. We // can use that for storage. $handler = views_get_handler($item['table'], $item['field'], $handler_type, $override); - $handler->init($executable, $item); + $handler->init($executable, $executable->display_handler, $item); // Add the incoming options to existing options because items using // the extra form may not have everything in the form here. @@ -1609,7 +1609,7 @@ function views_ui_config_item_form_submit($form, &$form_state) { // Create a new handler and unpack the options from the form onto it. We // can use that for storage. $handler = views_get_handler($item['table'], $item['field'], $handler_type, $override); - $handler->init($executable, $item); + $handler->init($executable, $executable->display_handler, $item); // Add the incoming options to existing options because items using // the extra form may not have everything in the form here. @@ -1685,12 +1685,13 @@ function views_ui_config_item_group_form_submit($form, &$form_state) { $id = $form_state['id']; $handler = views_get_handler($item['table'], $item['field'], $type); - $handler->init($form_state['view']->get('executable'), $item); + $executable = $form_state['view']->get('executable'); + $handler->init($executable, $executable->display_handler, $item); $handler->submitGroupByForm($form, $form_state); // Store the item back on the view - $form_state['view']->get('executable')->setItem($form_state['display_id'], $form_state['type'], $form_state['id'], $item); + $executable->setItem($form_state['display_id'], $form_state['type'], $form_state['id'], $item); // Write to cache views_ui_cache_set($form_state['view']);