function ForumIndexStorage::read

Same name in other branches
  1. 9 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::read()
  2. 8.9.x core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::read()
  3. 10 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::read()

File

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

Class

ForumIndexStorage
Handles CRUD operations to {forum_index} table.

Namespace

Drupal\forum

Code

public function read(array $vids) {
    return $this->database
        ->select('forum', 'f')
        ->fields('f', [
        'nid',
        'tid',
    ])
        ->condition('f.vid', $vids, 'IN')
        ->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.