You are here

public function ContentEntityAggregatorSensorPlugin::__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.

Overrides SensorPluginBase::__construct

1 call to ContentEntityAggregatorSensorPlugin::__construct()
CommerceTurnoverSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/CommerceTurnoverSensorPlugin.php
Instantiates a sensor object.
1 method overrides ContentEntityAggregatorSensorPlugin::__construct()
CommerceTurnoverSensorPlugin::__construct in src/Plugin/monitoring/SensorPlugin/CommerceTurnoverSensorPlugin.php
Instantiates a sensor object.

File

src/Plugin/monitoring/SensorPlugin/ContentEntityAggregatorSensorPlugin.php, line 144
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\ContentEntityAggregatorSensorPlugin.

Class

ContentEntityAggregatorSensorPlugin
Content entity database aggregator.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function __construct(SensorConfig $sensor_config, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) {
  parent::__construct($sensor_config, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
}