You are here

public function OpignoActivity::revisionIds in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoActivity.php \Drupal\opigno_module\Entity\OpignoActivity::revisionIds()

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

Return value

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

Overrides OpignoActivityInterface::revisionIds

File

src/Entity/OpignoActivity.php, line 491

Class

OpignoActivity
Defines the Activity entity.

Namespace

Drupal\opigno_module\Entity

Code

public function revisionIds() {
  return \Drupal::database()
    ->query('SELECT vid FROM {opigno_activity_revision} WHERE id=:id ORDER BY revision_created DESC', [
    ':id' => $this
      ->id(),
  ])
    ->fetchCol();
}