public function AccessStorage::getRoleTermPermissionsByTids in Permissions by Term 8
Same name and namespace in other branches
- 8.2 src/Service/AccessStorage.php \Drupal\permissions_by_term\Service\AccessStorage::getRoleTermPermissionsByTids()
Parameters
array $tids:
string $langcode:
Return value
array
File
- src/
Service/ AccessStorage.php, line 190
Class
- AccessStorage
- Class AccessStorage.
Namespace
Drupal\permissions_by_term\ServiceCode
public function getRoleTermPermissionsByTids($tids, $langcode) {
$rids = [];
foreach ($tids as $tid) {
$tmpRids = $this
->getRoleTermPermissionsByTid($tid, $langcode);
if (!empty($tmpRids)) {
foreach ($tmpRids as $tmpRid) {
$rids[] = $tmpRid;
}
}
}
return $rids;
}