You are here

public function AccessStorage::getNidsByTid in Permissions by Term 8.2

Same name and namespace in other branches
  1. 8 src/Service/AccessStorage.php \Drupal\permissions_by_term\Service\AccessStorage::getNidsByTid()

Parameters

$tid:

Return value

array

File

src/Service/AccessStorage.php, line 748

Class

AccessStorage
Class AccessStorage.

Namespace

Drupal\permissions_by_term\Service

Code

public function getNidsByTid($tid) {
  $query = $this->database
    ->select('taxonomy_index', 'ti')
    ->fields('ti', [
    'nid',
  ])
    ->condition('ti.tid', $tid);
  return $query
    ->execute()
    ->fetchCol();
}