You are here

public function HeartbeatTypeService::getEntityBundles in Heartbeat 8

File

src/HeartbeatTypeService.php, line 59

Class

HeartbeatTypeService
Class HeartbeatTypeService.

Namespace

Drupal\heartbeat

Code

public function getEntityBundles(ContentEntityType $entity) {
  return $this->entityTypeBundleInfo
    ->getBundleInfo($entity
    ->id());
}