You are here

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

FormBase

Namespace

Drupal\form_builder

Code

public function serialize() {
  return serialize(array(
    'formType' => $this->formType,
    'formId' => $this->formId,
    'sid' => $this->sid,
    'params' => $this->params,
    'form' => $this->form,
  ));
}