You are here

public function ConfigPermListForm::configPermsAdminFormAddSubmit in Custom Permissions 8.2

Same name and namespace in other branches
  1. 8 src/Form/ConfigPermListForm.php \Drupal\config_perms\Form\ConfigPermListForm::configPermsAdminFormAddSubmit()

Submit for add button.

File

src/Form/ConfigPermListForm.php, line 187

Class

ConfigPermListForm
Class ConfigPermListForm.

Namespace

Drupal\config_perms\Form

Code

public function configPermsAdminFormAddSubmit($form, &$form_state) {
  $form_state
    ->setValue('num_new', $form_state
    ->getValue('num_new') + 1);
  $form_state
    ->setRebuild();
}