public function SensorConfig::getSensorClass in Monitoring 8
Gets sensor plugin class.
Return value
string SensorPlugin class
Overrides SensorConfigInterface::getSensorClass
1 call to SensorConfig::getSensorClass()
- SensorConfig::isExtendedInfo in src/
Entity/ SensorConfig.php - Checks if sensor provides extended info.
File
- src/
Entity/ SensorConfig.php, line 164 - Contains \Drupal\monitoring\Entity\SensorConfig.
Class
- SensorConfig
- Represents a sensor config entity class.
Namespace
Drupal\monitoring\EntityCode
public function getSensorClass() {
$definition = monitoring_sensor_manager()
->getDefinition($this->plugin_id);
return $definition['class'];
}