You are here

public function AccessStorage::getUserTermPermissionsByTid in Permissions by Term 8

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

Parameters

int $term_id:

Return value

array

2 calls to AccessStorage::getUserTermPermissionsByTid()
AccessStorage::getUserTermPermissionsByTids in src/Service/AccessStorage.php
AccessStorage::saveTermPermissions in src/Service/AccessStorage.php
*

File

src/Service/AccessStorage.php, line 116

Class

AccessStorage
Class AccessStorage.

Namespace

Drupal\permissions_by_term\Service

Code

public function getUserTermPermissionsByTid($term_id, $langcode) {
  return $this->database
    ->select('permissions_by_term_user', 'pu')
    ->condition('tid', $term_id)
    ->condition('langcode', $langcode)
    ->fields('pu', [
    'uid',
  ])
    ->execute()
    ->fetchCol();
}