You are here

public function HeartbeatService::loadByType in Heartbeat 8

File

src/HeartbeatService.php, line 48

Class

HeartbeatService
Class HeartbeatService.

Namespace

Drupal\heartbeat

Code

public function loadByType($type) {
  return $this->entityTypeManager
    ->getStorage("heartbeat")
    ->loadMultiple($this->entityQuery
    ->get('heartbeat')
    ->condition('type', $type)
    ->execute());
}