public function HeartbeatStreamServices::createStreamForUids in Heartbeat 8
File
- src/
HeartbeatStreamServices.php, line 144
Class
- HeartbeatStreamServices
- Class HeartbeatStreamServices.
Namespace
Drupal\heartbeatCode
public function createStreamForUids($uids) {
return $this->entityTypeManager
->getStorage('heartbeat')
->loadMultiple($this->entityQuery
->get('heartbeat')
->condition('status', 1)
->condition('uid', $uids, 'IN')
->sort('created', 'DESC')
->range(0, 25)
->execute());
}