public function ChangeUserRoleBase::submit

Form submission handler.

Parameters

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

array $form_state: An associative array containing the current state of the form.

Overrides ConfigurableActionInterface::submit

File

drupal/core/modules/user/lib/Drupal/user/Plugin/Action/ChangeUserRoleBase.php, line 45
Contains \Drupal\user\Plugin\Action\ChangeUserRoleBase.

Class

ChangeUserRoleBase
Provides a base class for operations to change a user's role.

Namespace

Drupal\user\Plugin\Action

Code

public function submit(array &$form, array &$form_state) {
  $this->configuration['rid'] = $form_state['values']['rid'];
}