Change record status: 
Project: 
Introduced in branch: 
8.x
Introduced in version: 
8.0.0-alpha14
Description: 

Summary

  • Drupal 7, forms were built by a procedural function, and validation and submission were named functions.
  • In Drupal 8, there is now an interface called FormInterface with four methods:
    getFormID(), buildForm(), validateForm(), submitForm()
  • Refer FormInterface Change Request at: https://drupal.org/node/1932058
  • This change request cleans up drupal_get_form() to initiate an existing or new class name

Before

drupal_get_form(new SearchBlockForm());
drupal_get_form(ConfirmDeleteMultiple::create(\Drupal::getContainer()));

drupal_get_form was used as - return drupal_get_form(new SearchBlockForm(), $this->request);

After

drupal_get_form('Drupal\comment\Form\ConfirmDeleteMultiple');
drupal_get_form('Drupal\search\Form\SearchBlockForm');

drupal_get_form now used as - return drupal_get_form('Drupal\search\Form\SearchBlockForm');

Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done