You are here

public function ImageCaptionStorage::deleteCaptionRevisionsByRevisionId in Image Field Caption 8

Delete all captions revisions for a specific revision id.

Parameters

int $revision_id: The revision id.

File

src/ImageCaptionStorage.php, line 351
Contains \Drupal\image_field_caption\ImageCaptionStorage.

Class

ImageCaptionStorage
Storage controller class for image captions.

Namespace

Drupal\image_field_caption

Code

public function deleteCaptionRevisionsByRevisionId($revision_id) {
  $query = $this->database
    ->delete($this->tableRevision);
  $query
    ->condition('revision_id', $revision_id, '=')
    ->execute();
}