public function HeartbeatStorage::userRevisionIds in Heartbeat 8
Gets a list of revision IDs having a given user as Heartbeat author.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user entity.
Return value
int[] Heartbeat revision IDs (in ascending order).
Overrides HeartbeatStorageInterface::userRevisionIds
File
- src/
HeartbeatStorage.php, line 33
Class
- HeartbeatStorage
- Defines the storage handler class for Heartbeat entities.
Namespace
Drupal\heartbeatCode
public function userRevisionIds(AccountInterface $account) {
return $this->database
->query('SELECT vid FROM {heartbeat_field_revision} WHERE uid = :uid ORDER BY vid', array(
':uid' => $account
->id(),
))
->fetchCol();
}