Commit b0d6b2ac authored by alexpott's avatar alexpott
Browse files

Issue #2002374 by brentaar, toddtomlinson: Rename Views method build_form() to buildForm().

parent f13b87ca
...@@ -26,7 +26,7 @@ interface WizardInterface { ...@@ -26,7 +26,7 @@ interface WizardInterface {
* @return array * @return array
* Returns the changed wizard form. * 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. * Validate form and values.
......
...@@ -198,9 +198,9 @@ public function getSorts() { ...@@ -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)); $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)); $feed_row_options = views_fetch_plugin_names('row', 'feed', array($this->base_table));
$path_prefix = url(NULL, array('absolute' => TRUE)); $path_prefix = url(NULL, array('absolute' => TRUE));
......
...@@ -59,7 +59,7 @@ protected function setUp() { ...@@ -59,7 +59,7 @@ protected function setUp() {
public function testCreateView() { public function testCreateView() {
$form = array(); $form = array();
$form_state = 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_id = strtolower($this->randomName());
$random_label = $this->randomName(); $random_label = $this->randomName();
$random_description = $this->randomName(); $random_description = $this->randomName();
......
...@@ -150,7 +150,7 @@ public function form(array $form, array &$form_state) { ...@@ -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. // Build the rest of the form based on the currently selected wizard plugin.
$wizard_key = $show_form['wizard_key']['#default_value']; $wizard_key = $show_form['wizard_key']['#default_value'];
$wizard_instance = $this->wizardManager->createInstance($wizard_key); $wizard_instance = $this->wizardManager->createInstance($wizard_key);
$form = $wizard_instance->build_form($form, $form_state); $form = $wizard_instance->buildForm($form, $form_state);
return $form; return $form;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment