You are here

function SensorPluginBase::__construct in Monitoring 8

Instantiates a sensor object.

Parameters

\Drupal\monitoring\Entity\SensorConfig $sensor_config: Sensor config object.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

8 calls to SensorPluginBase::__construct()
ContentEntityAggregatorSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php
Instantiates a sensor object.
DatabaseDiskUsagePlugin::__construct in src/Plugin/monitoring/SensorPlugin/DatabaseDiskUsagePlugin.php
DatabaseDiskUsagePlugin constructor.
DiskUsageSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/DiskUsageSensorPlugin.php
Instantiates a sensor object.
SolrDiskUsageSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/SolrDiskUsageSensorPlugin.php
Instantiates a sensor object.
SystemLoadSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/SystemLoadSensorPlugin.php
Instantiates a sensor object.

... See full list

8 methods override SensorPluginBase::__construct()
ContentEntityAggregatorSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php
Instantiates a sensor object.
DatabaseDiskUsagePlugin::__construct in src/Plugin/monitoring/SensorPlugin/DatabaseDiskUsagePlugin.php
DatabaseDiskUsagePlugin constructor.
DiskUsageSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/DiskUsageSensorPlugin.php
Instantiates a sensor object.
SolrDiskUsageSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/SolrDiskUsageSensorPlugin.php
Instantiates a sensor object.
SystemLoadSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/SystemLoadSensorPlugin.php
Instantiates a sensor object.

... See full list

File

src/SensorPlugin/SensorPluginBase.php, line 66
Contains \Drupal\monitoring\SensorPlugin\SensorPluginBase.

Class

SensorPluginBase
Abstract SensorPluginInterface implementation with common behaviour and will be extended by sensor plugins.

Namespace

Drupal\monitoring\SensorPlugin

Code

function __construct(SensorConfig $sensor_config, $plugin_id, $plugin_definition) {
  $this->pluginId = $plugin_id;
  $this->pluginDefinition = $plugin_definition;
  $this->sensorConfig = $sensor_config;
}