Commit 0e240bb7 authored by webchick's avatar webchick

Issue #2301591 by joshi.rohit100: Remove drupal_rebuild_form() as it is deprecated.

parent d14ea92b
......@@ -142,18 +142,6 @@ function drupal_build_form($form_id, &$form_state) {
return \Drupal::formBuilder()->buildForm($form_id, $form_state);
}
/**
* Constructs a new $form from the information in $form_state.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::formBuilder()->rebuildForm().
*
* @see \Drupal\Core\Form\FormBuilderInterface::rebuildForm().
*/
function drupal_rebuild_form($form_id, &$form_state, $old_form = NULL) {
return \Drupal::formBuilder()->rebuildForm($form_id, $form_state, $old_form);
}
/**
* Fetches a form from the cache.
*
......
......@@ -90,7 +90,7 @@ protected function getForm(Request $request) {
// When a form is rebuilt after Ajax processing, its #build_id and #action
// should not change.
// @see drupal_rebuild_form()
// @see \Drupal\Core\Form\FormBuilderInterface::rebuildForm()
$form_state['rebuild_info']['copy']['#build_id'] = TRUE;
$form_state['rebuild_info']['copy']['#action'] = TRUE;
......
......@@ -11,7 +11,7 @@
use Drupal\simpletest\WebTestBase;
/**
* Tests functionality of drupal_rebuild_form().
* Tests functionality of \Drupal\Core\Form\FormBuilderInterface::rebuildForm().
*
* @group Form
* @todo Add tests for other aspects of form rebuilding.
......
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