You are here

public function HeartbeatService::loadAll in Heartbeat 8

File

src/HeartbeatService.php, line 37

Class

HeartbeatService
Class HeartbeatService.

Namespace

Drupal\heartbeat

Code

public function loadAll() {
  $entities = $this->entityQuery
    ->get("heartbeat")
    ->execute();
  return $this->entityTypeManager
    ->getStorage("heartbeat")
    ->loadMultiple($entities);
}