diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardInterface.php b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardInterface.php index cd340fb..7512b88 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardInterface.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardInterface.php @@ -26,7 +26,7 @@ * @return array * Returns the changed wizard form. */ - function build_form(array $form, array &$form_state); + public function buildForm(array $form, array &$form_state); /** * Validate form and values. diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php index 978659c..4c2d439 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php @@ -198,9 +198,9 @@ public function getSorts() { } /** - * Implements Drupal\views\Plugin\views\wizard\WizardInterface::build_form(). + * {@inheritdoc} Drupal\views\Plugin\views\wizard\WizardInterface::buildForm(). */ - function build_form(array $form, array &$form_state) { + public function buildForm(array $form, array &$form_state) { $style_options = views_fetch_plugin_names('style', 'normal', array($this->base_table)); $feed_row_options = views_fetch_plugin_names('row', 'feed', array($this->base_table)); $path_prefix = url(NULL, array('absolute' => TRUE)); diff --git a/core/modules/views/lib/Drupal/views/Tests/Wizard/WizardPluginBaseUnitTest.php b/core/modules/views/lib/Drupal/views/Tests/Wizard/WizardPluginBaseUnitTest.php index 529d4f1..f297a96 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Wizard/WizardPluginBaseUnitTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Wizard/WizardPluginBaseUnitTest.php @@ -59,7 +59,7 @@ protected function setUp() { public function testCreateView() { $form = array(); $form_state = array(); - $form = $this->wizard->build_form($form, $form_state); + $form = $this->wizard->buildForm($form, $form_state); $random_id = strtolower($this->randomName()); $random_label = $this->randomName(); $random_description = $this->randomName(); diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php index 56bc02a..ed90994 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php @@ -150,7 +150,7 @@ public function form(array $form, array &$form_state) { // Build the rest of the form based on the currently selected wizard plugin. $wizard_key = $show_form['wizard_key']['#default_value']; $wizard_instance = $this->wizardManager->createInstance($wizard_key); - $form = $wizard_instance->build_form($form, $form_state); + $form = $wizard_instance->buildForm($form, $form_state); return $form; }