You are here

function FormState::__construct in Module Builder 7.2

File

includes/module_builder.pages.inc, line 435
Menu callback for main module builder page.

Class

FormState
Wrapper around D7's form state array, so D8 methods work.

Code

function __construct(&$form_state_array) {
  $this->form_state =& $form_state_array;

  // Initialize storage as an empty array so NestedArray works.
  if (!isset($this->form_state['storage'])) {
    $this->form_state['storage'] = [];
  }
}