public function AccessStorage::getRoleTermPermissionsByTid in Permissions by Term 8.2
Same name and namespace in other branches
- 8 src/Service/AccessStorage.php \Drupal\permissions_by_term\Service\AccessStorage::getRoleTermPermissionsByTid()
Parameters
int $term_id:
string $langcode:
Return value
array
2 calls to AccessStorage::getRoleTermPermissionsByTid()
- AccessStorage::getRoleTermPermissionsByTids in src/
Service/ AccessStorage.php - AccessStorage::saveTermPermissions in src/
Service/ AccessStorage.php
File
- src/
Service/ AccessStorage.php, line 185
Class
- AccessStorage
- Class AccessStorage.
Namespace
Drupal\permissions_by_term\ServiceCode
public function getRoleTermPermissionsByTid($term_id, $langcode) {
return $this->database
->select('permissions_by_term_role', 'pr')
->condition('tid', $term_id)
->condition('langcode', $langcode)
->fields('pr', [
'rid',
])
->execute()
->fetchCol();
}