public function AccessStorage::getUserTermPermissionsByTid in Permissions by Term 8.2
Same name and namespace in other branches
- 8 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 125
Class
- AccessStorage
- Class AccessStorage.
Namespace
Drupal\permissions_by_term\ServiceCode
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();
}