You are here

public function RoleListBuilder::submitForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/src/RoleListBuilder.php \Drupal\user\RoleListBuilder::submitForm()

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 DraggableListBuilder::submitForm

File

core/modules/user/src/RoleListBuilder.php, line 97

Class

RoleListBuilder
Defines a class to build a listing of user role entities.

Namespace

Drupal\user

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $this->messenger
    ->addStatus($this
    ->t('The role settings have been updated.'));
}