You are here

public function HomeboxLayoutStorage::userRevisionIds in Homebox 8

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

Parameters

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

Return value

int[] Homebox Layout revision IDs (in ascending order).

Overrides HomeboxLayoutStorageInterface::userRevisionIds

File

src/HomeboxLayoutStorage.php, line 33

Class

HomeboxLayoutStorage
Defines the storage handler class for Homebox Layout entities.

Namespace

Drupal\homebox

Code

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