You are here

public function FormBase::__construct in Form Builder 7.2

File

src/FormBase.php, line 59

Class

FormBase

Namespace

Drupal\form_builder

Code

public function __construct($form_type, $form_id, $sid, $params, $form) {
  $this->formType = $form_type;
  $this->formId = $form_id;
  $this->sid = $sid ? $sid : session_id();
  $this->params = $params;
  $this->properties = NULL;
  $this->form =& $form;
  $this->elementArrays[FORM_BUILDER_ROOT] =& $this->form;
  $this
    ->addDefaults($this->form);
  $this
    ->indexElements($this->form);
}