public function FormBase::unserialize in Form Builder 7.2
Unserialize a stored version of this form.
File
- src/
FormBase.php, line 91
Class
Namespace
Drupal\form_builderCode
public function unserialize($data) {
$data = unserialize($data);
$this->formType = $data['formType'];
$this->formId = $data['formId'];
$this->sid = $data['sid'];
$this->params = $data['params'];
$this->form = $data['form'];
$this->properties = array();
$this->elementArrays[FORM_BUILDER_ROOT] =& $this->form;
$this
->addDefaults($this->form);
$this
->indexElements($this->form);
}