You are here

public function GrantsForm::searchUser in Nodeaccess 8

Same name and namespace in other branches
  1. 8.2 src/Form/GrantsForm.php \Drupal\nodeaccess\Form\GrantsForm::searchUser()

Helper function to search usernames.

File

src/Form/GrantsForm.php, line 359

Class

GrantsForm
Builds the configuration form.

Namespace

Drupal\nodeaccess\Form

Code

public function searchUser(array &$form, FormStateInterface $form_state) {
  $values = $form_state
    ->getValues();
  $form_state
    ->setRebuild();
  $form_state
    ->setStorage($values);
}