public function FormBase::serialize in Form Builder 7.2
Serialize the form.
NOTE: This should only be used for short-term storage.
File
- src/
FormBase.php, line 77
Class
Namespace
Drupal\form_builderCode
public function serialize() {
return serialize(array(
'formType' => $this->formType,
'formId' => $this->formId,
'sid' => $this->sid,
'params' => $this->params,
'form' => $this->form,
));
}