You are here

public function HeartbeatTypeService::getTypes in Heartbeat 8

File

src/HeartbeatTypeService.php, line 51

Class

HeartbeatTypeService
Class HeartbeatTypeService.

Namespace

Drupal\heartbeat

Code

public function getTypes() {
  return $this->entityQuery
    ->get('heartbeat_type')
    ->sort('weight', 'ASC')
    ->execute();
}