public function AccessStorage::getAllNidsUserCanAccess in Permissions by Term 8
Same name and namespace in other branches
- 8.2 src/Service/AccessStorage.php \Drupal\permissions_by_term\Service\AccessStorage::getAllNidsUserCanAccess()
Parameters
$uid:
Return value
array
File
- src/
Service/ AccessStorage.php, line 717
Class
- AccessStorage
- Class AccessStorage.
Namespace
Drupal\permissions_by_term\ServiceCode
public function getAllNidsUserCanAccess($uid) {
$query = $this->database
->select('node_access', 'na')
->fields('na', [
'nid',
])
->condition('na.realm', 'permissions_by_term__uid_' . $uid);
return $query
->execute()
->fetchCol();
}