public function ForumIndexStorage::delete in Drupal 10
Same name and namespace in other branches
- 8 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::delete()
- 9 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::delete()
File
- core/
modules/ forum/ src/ ForumIndexStorage.php, line 64
Class
- ForumIndexStorage
- Handles CRUD operations to {forum_index} table.
Namespace
Drupal\forumCode
public function delete(NodeInterface $node) {
$this->database
->delete('forum')
->condition('nid', $node
->id())
->execute();
}