You are here

public function NonExistingUserFailedLoginsSensorPlugin::resultVerbose in Monitoring 8

Provide additional info about sensor call.

This method is only executed on request. It is guaranteed that runSensor() is executed before this method.

Parameters

\Drupal\monitoring\Result\SensorResultInterface $result: Sensor result.

Return value

array Sensor call verbose info as render array.

Overrides DatabaseAggregatorSensorPlugin::resultVerbose

File

src/Plugin/monitoring/SensorPlugin/NonExistingUserFailedLoginsSensorPlugin.php, line 54
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\NonExistingUserFailedLoginsSensorPlugin.

Class

NonExistingUserFailedLoginsSensorPlugin
Monitors non existing user failed login from dblog messages.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function resultVerbose(SensorResultInterface $result) {

  // The unaggregated result in a fieldset.
  $output = parent::resultVerbose($result);

  // The result aggregated per ip.
  $this
    ->verboseResultCounting($output);
  return $output;
}