public function HeartbeatStreamServices::getEntityById in Heartbeat 8
Returns a loaded HeartbeatStream entity
Parameters
$id:
Return value
\Drupal\Core\Entity\EntityInterface|null
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
File
- src/
HeartbeatStreamServices.php, line 82
Class
- HeartbeatStreamServices
- Class HeartbeatStreamServices.
Namespace
Drupal\heartbeatCode
public function getEntityById($id) {
return $this->entityTypeManager
->getStorage('heartbeat_stream')
->load($id);
}