You are here

public function FlaggingCollectionStorage::userRevisionIds in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/FlaggingCollectionStorage.php \Drupal\flag_lists\FlaggingCollectionStorage::userRevisionIds()

Gets a list of revision IDs owned by a given user.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user entity.

Return value

int[] Flagging collection revision IDs (in ascending order).

Overrides FlaggingCollectionStorageInterface::userRevisionIds

File

src/FlaggingCollectionStorage.php, line 33

Class

FlaggingCollectionStorage
Defines the storage handler class for Flagging collection entities.

Namespace

Drupal\flag_lists

Code

public function userRevisionIds(AccountInterface $account) {
  return $this->database
    ->query('SELECT vid FROM {flagging_collection_field_revision} WHERE uid = :uid ORDER BY vid', [
    ':uid' => $account
      ->id(),
  ])
    ->fetchCol();
}