function ForumIndexStorage::delete
Deletes the records in {forum} table for the given node.
Parameters
\Drupal\node\NodeInterface $node: The node for which the records are to be deleted.
Overrides ForumIndexStorageInterface::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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.