You are here

public function BulkUserImport::submitForm in Bulk User Registration 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

src/Form/BulkUserImport.php, line 116

Class

BulkUserImport
Bulk user import form.

Namespace

Drupal\bulk_user_registration\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $defaultRole = $form_state
    ->getValue('default_role');
  $this
    ->handleFileData($this->requestStack
    ->getCurrentRequest()->files, $defaultRole);
}