You are here

public function UserIntegritySensorPlugin::submitConfirmPrivilegedUsers in Monitoring 8

Resets current keyValue storage.

Return value

array Available users.

File

src/Plugin/monitoring/SensorPlugin/UserIntegritySensorPlugin.php, line 438
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\UserIntegritySensorPlugin.

Class

UserIntegritySensorPlugin
Monitors user data changes.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function submitConfirmPrivilegedUsers(array $form, FormStateInterface $form_state) {
  \Drupal::keyValue('monitoring.users')
    ->deleteAll();
  return $form;
}