You are here

public function ForumIndexStorage::deleteRevision in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::deleteRevision()
  2. 9 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::deleteRevision()

File

core/modules/forum/src/ForumIndexStorage.php, line 73

Class

ForumIndexStorage
Handles CRUD operations to {forum_index} table.

Namespace

Drupal\forum

Code

public function deleteRevision(NodeInterface $node) {
  $this->database
    ->delete('forum')
    ->condition('nid', $node
    ->id())
    ->condition('vid', $node
    ->getRevisionId())
    ->execute();
}