You are here

public function AccessStorage::getUserTermPermissionsByTids 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::getUserTermPermissionsByTids()

Parameters

array $tids:

string $langcode:

Return value

array

File

src/Service/AccessStorage.php, line 165

Class

AccessStorage
Class AccessStorage.

Namespace

Drupal\permissions_by_term\Service

Code

public function getUserTermPermissionsByTids($tids, $langcode) {
  $uids = [];
  foreach ($tids as $tid) {
    if (!empty($tmpUids = $this
      ->getUserTermPermissionsByTid($tid, $langcode))) {
      foreach ($tmpUids as $tmpUid) {
        $uids[] = $tmpUid;
      }
    }
  }
  return $uids;
}