You are here

public function Multigraph::getDefinition in Monitoring 8

Compiles sensor values to an associative array.

Return value

array Sensor config associative array.

Overrides MultigraphInterface::getDefinition

File

modules/multigraph/src/Entity/Multigraph.php, line 102
Contains \Drupal\monitoring_multigraph\Entity\Multigraph.

Class

Multigraph
Represents an aggregation of related sensors, called a multigraph.

Namespace

Drupal\monitoring_multigraph\Entity

Code

public function getDefinition() {
  return array(
    'id' => $this
      ->id(),
    'label' => $this
      ->label(),
    'description' => $this
      ->getDescription(),
    'sensors' => $this->sensors,
  );
}