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..534b00d 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 @@ -55,6 +55,6 @@ public function validateView(array $form, array &$form_state); * * @throws Drupal\views\Plugin\views\wizard\WizardException */ - function create_view(array $form, array &$form_state); + public function createView(array $form, array &$form_state); } 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 5604b84..4dd9e6d 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,7 +198,7 @@ public function getSorts() { } /** - * Implements Drupal\views\Plugin\views\wizard\WizardInterface::build_form(). + * {@inheritdoc} */ function build_form(array $form, array &$form_state) { $style_options = views_fetch_plugin_names('style', 'normal', array($this->base_table)); @@ -1161,12 +1161,12 @@ public function validateView(array $form, array &$form_state) { } /** - * Implements Drupal\views\Plugin\views\wizard\WizardInterface::create_view(). + * Implements Drupal\views\Plugin\views\wizard\WizardInterface::createView(). */ - function create_view(array $form, array &$form_state) { + function createView(array $form, array &$form_state) { $view = $this->retrieveValidatedView($form, $form_state); if (empty($view)) { - throw new WizardException('Attempted to create_view with values that have not been validated.'); + throw new WizardException('Attempted to create a view with values that have not been validated.'); } return $view; } 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..f62090e 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Wizard/WizardPluginBaseUnitTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Wizard/WizardPluginBaseUnitTest.php @@ -80,7 +80,7 @@ public function testCreateView() { ); $this->wizard->validateView($form, $form_state); - $view = $this->wizard->create_view($form, $form_state); + $view = $this->wizard->createView($form, $form_state); $this->assertTrue($view instanceof ViewUI, 'The created view is a ViewUI object.'); $this->assertEqual($view->get('id'), $random_id); $this->assertEqual($view->get('label'), $random_label); 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..c1d4c21 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php @@ -194,7 +194,7 @@ public function validate(array $form, array &$form_state) { */ public function submit(array $form, array &$form_state) { try { - $view = $form_state['wizard_instance']->create_view($form, $form_state); + $view = $form_state['wizard_instance']->createView($form, $form_state); } // @todo Figure out whether it really makes sense to throw and catch exceptions on the wizard. catch (WizardException $e) {