You are here

public function EasyEmailStorage::revisionIds in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/EasyEmailStorage.php \Drupal\easy_email\EasyEmailStorage::revisionIds()

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

Parameters

\Drupal\easy_email\Entity\EasyEmailInterface $entity: The Email entity.

Return value

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

Overrides EasyEmailStorageInterface::revisionIds

File

src/EasyEmailStorage.php, line 94

Class

EasyEmailStorage
Defines the storage handler class for Email entities.

Namespace

Drupal\easy_email

Code

public function revisionIds(EasyEmailInterface $entity) {
  return $this->database
    ->query('SELECT vid FROM {easy_email_revision} WHERE id=:id ORDER BY vid', [
    ':id' => $entity
      ->id(),
  ])
    ->fetchCol();
}