You are here

public function SupportTicketStorage::userRevisionIds in Support Ticketing System 8

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

Parameters

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

Return value

int[] Support ticket revision IDs (in ascending order).

Overrides SupportTicketStorageInterface::userRevisionIds

File

modules/support_ticket/src/SupportTicketStorage.php, line 35
Contains \Drupal\support_ticket\SupportTicketStorage.

Class

SupportTicketStorage
Defines the controller class for support tickets.

Namespace

Drupal\support_ticket

Code

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