public function Multigraph::calculateDependencies in Monitoring 8
Calculates dependencies and stores them in the dependency property.
Return value
$this
Overrides ConfigEntityBase::calculateDependencies
See also
\Drupal\Core\Config\Entity\ConfigDependencyManager
File
- modules/
multigraph/ src/ Entity/ Multigraph.php, line 190 - Contains \Drupal\monitoring_multigraph\Entity\Multigraph.
Class
- Multigraph
- Represents an aggregation of related sensors, called a multigraph.
Namespace
Drupal\monitoring_multigraph\EntityCode
public function calculateDependencies() {
return array(
'entity' => array_map(function (SensorConfig $sensor) {
return $sensor
->getConfigDependencyName();
}, $this
->getSensors()),
);
}