You are here

public function HeartbeatStreamServices::getTypesById in Heartbeat 8

Returns an array of HeartbeatType strings for a given HeartbeatStream specified by ID

Parameters

$id:

Return value

mixed

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

File

src/HeartbeatStreamServices.php, line 94

Class

HeartbeatStreamServices
Class HeartbeatStreamServices.

Namespace

Drupal\heartbeat

Code

public function getTypesById($id) {
  return $this->entityTypeManager
    ->getStorage('heartbeat_stream')
    ->load($id)
    ->get('types');
}