public function Multigraph::getSensors in Monitoring 8
Gets the included sensors.
Return value
\Drupal\monitoring\Entity\SensorConfig[] The included sensors as an indexed array sorted by weight where the values are sensors with custom labels.
Overrides MultigraphInterface::getSensors
1 call to Multigraph::getSensors()
- Multigraph::calculateDependencies in modules/
multigraph/ src/ Entity/ Multigraph.php - Calculates dependencies and stores them in the dependency property.
File
- modules/
multigraph/ src/ Entity/ Multigraph.php, line 121 - Contains \Drupal\monitoring_multigraph\Entity\Multigraph.
Class
- Multigraph
- Represents an aggregation of related sensors, called a multigraph.
Namespace
Drupal\monitoring_multigraph\EntityCode
public function getSensors() {
if (!empty($this->sensorEntities)) {
return $this->sensorEntities;
}
foreach ($this->sensors as $name => $sensor_config) {
$this
->addSensorEntity($name, $sensor_config['label']);
}
return $this->sensorEntities;
}