You are here

public function LogStorage::userRevisionIds in Log entity 8

Gets a list of revision IDs having a given user as log author.

Parameters

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

Return value

int[] Log revision IDs (in ascending order).

Overrides LogStorageInterface::userRevisionIds

File

src/LogStorage.php, line 35
Contains \Drupal\log\LogStorage.

Class

LogStorage
Defines the controller class for logs.

Namespace

Drupal\log

Code

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