public function FormState::__construct in Little helpers 7
File
- src/
Webform/ FormState.php, line 14
Class
- FormState
- Class for making webform component values before an submission is saved.
Namespace
Drupal\little_helpers\WebformCode
public function __construct($node, $form, array &$form_state) {
$this->node = $node;
$this->webform = new Webform($node);
$this->formState =& $form_state;
// Assume webform_client_form_pages() has already been run.
$this->values =& $form_state['values']['submitted'];
}