You are here

public function ViewDisplayAggregatorSensorPlugin::getDefaultConfiguration in Monitoring 8

Default configuration for a sensor.

Return value

array An array of default configurations.

Overrides SensorPluginBase::getDefaultConfiguration

File

src/Plugin/monitoring/SensorPlugin/ViewDisplayAggregatorSensorPlugin.php, line 174
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\ViewDisplayAggregatorSensorPlugin.

Class

ViewDisplayAggregatorSensorPlugin
Execute a view display and count the results.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function getDefaultConfiguration() {
  $default_config = array(
    'value_type' => 'number',
  );
  return $default_config;
}