database->query( 'SELECT vid FROM {heartbeat_revision} WHERE id=:id ORDER BY vid', array(':id' => $entity->id()) )->fetchCol(); } /** * {@inheritdoc} */ 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(); } /** * {@inheritdoc} */ public function countDefaultLanguageRevisions(HeartbeatInterface $entity) { return $this->database->query('SELECT COUNT(*) FROM {heartbeat_field_revision} WHERE id = :id AND default_langcode = 1', array(':id' => $entity->id())) ->fetchField(); } /** * {@inheritdoc} */ public function clearRevisionsLanguage(LanguageInterface $language) { return $this->database->update('heartbeat_revision') ->fields(array('langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED)) ->condition('langcode', $language->getId()) ->execute(); } }