You are here

public static function Form::loadFromStorage in Form Builder 7.2

Overrides FormBase::loadFromStorage

1 call to Form::loadFromStorage()
FormTest::testConfigurationForm in modules/webform/tests/FormTest.php
Test the element configuration form.

File

modules/webform/src/Form.php, line 14

Class

Form

Namespace

Drupal\form_builder_webform

Code

public static function loadFromStorage($form_type, $form_id, $sid, $params) {

  // Webform identifies its forms by Node Id.
  $node = node_load($form_id);
  $form = new static($form_type, $form_id, $sid, $params, array());
  $components = static::addFirstPagebreak($node, $node->webform['components']);
  $form
    ->addComponents($components);
  drupal_alter('form_builder_load', $form, $form_type, $form_id);
  return $form;
}