public function ForumIndexStorage::read in Drupal 8
Same name and namespace in other branches
- 9 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::read()
- 10 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::read()
Reads an array of {forum} records for the given revision ids.
Parameters
array $vids: An array of node revision ids.
Return value
\Drupal\Core\Database\StatementInterface The records from {forum} for the given vids.
Overrides ForumIndexStorageInterface::read
File
- core/
modules/ forum/ src/ ForumIndexStorage.php, line 54
Class
- ForumIndexStorage
- Handles CRUD operations to {forum_index} table.
Namespace
Drupal\forumCode
public function read(array $vids) {
return $this->database
->select('forum', 'f')
->fields('f', [
'nid',
'tid',
])
->condition('f.vid', $vids, 'IN')
->execute();
}