function ForumIndexStorage::deleteIndex
Same name in other branches
- 8.9.x core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::deleteIndex()
- 10 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::deleteIndex()
- 11.x core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::deleteIndex()
Overrides ForumIndexStorageInterface::deleteIndex
File
-
core/
modules/ forum/ src/ ForumIndexStorage.php, line 158
Class
- ForumIndexStorage
- Handles CRUD operations to {forum_index} table.
Namespace
Drupal\forumCode
public function deleteIndex(NodeInterface $node) {
$this->database
->delete('forum_index')
->condition('nid', $node->id())
->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.