You are here

public function SensorPluginInterface::addService in Monitoring 8

Service setter.

Parameters

string $id: Service name.

mixed $service: The service to be used in the run method.

1 method overrides SensorPluginInterface::addService()
SensorPluginBase::addService in src/SensorPlugin/SensorPluginBase.php
Service setter.

File

src/SensorPlugin/SensorPluginInterface.php, line 30
Contains \Drupal\monitoring\SensorPlugin\SensorPluginInterface.

Class

SensorPluginInterface
Interface for a sensor plugin defining basic operations.

Namespace

Drupal\monitoring\SensorPlugin

Code

public function addService($id, $service);