You are here

public function MonitoringSensorResultResource::__construct in Monitoring 8

Constructs a Drupal\rest\Plugin\ResourceBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

array $serializer_formats: The available serialization formats.

\Psr\Log\LoggerInterface $logger: A logger instance.

Overrides ResourceBase::__construct

File

src/Plugin/rest/resource/MonitoringSensorResultResource.php, line 54
Definition of Drupal\monitoring\Plugin\rest\resource\MonitoringSensorInfoResource.

Class

MonitoringSensorResultResource
Provides a resource for monitoring sensors results.

Namespace

Drupal\monitoring\Plugin\rest\resource

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, array $serializer_formats, SensorManager $sensor_manager, SensorRunner $sensor_runner, LoggerInterface $logger, RendererInterface $renderer) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $serializer_formats, $logger);
  $this->sensorManager = $sensor_manager;
  $this->sensorRunner = $sensor_runner;
  $this->renderer = $renderer;
}