You are here

public function LogStorage::revisionIds in Log entity 8

Gets a list of log revision IDs for a specific log.

Parameters

\Drupal\log\LogInterface: The log entity.

Return value

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

Overrides LogStorageInterface::revisionIds

File

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

Class

LogStorage
Defines the controller class for logs.

Namespace

Drupal\log

Code

public function revisionIds(LogInterface $log) {
  return $this->database
    ->query('SELECT vid FROM {log_revision} WHERE id=:id ORDER BY vid', array(
    ':id' => $log
      ->id(),
  ))
    ->fetchCol();
}