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

8.0.x
Alex Pott 2013-06-05 07:15:58 +01:00
parent f13b87ca4b
commit b0d6b2ace5
4 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ interface WizardInterface {
* @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.

View File

@ -198,9 +198,9 @@ abstract class WizardPluginBase extends PluginBase implements WizardInterface {
}
/**
* 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));

View File

@ -59,7 +59,7 @@ class WizardPluginBaseUnitTest extends ViewUnitTestBase {
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();

View File

@ -150,7 +150,7 @@ class ViewAddFormController extends ViewFormControllerBase implements EntityCont
// 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;
}