You are here

public function ConfigPermListForm::configPermsAdminFormAddSubmit in Custom Permissions 8

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

Submit for add button.

File

src/Form/ConfigPermListForm.php, line 143

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();
}