You are here

public function AccessStorage::getRoleTermPermissionsByTid in Permissions by Term 8

Same name and namespace in other branches
  1. 8.2 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 176

Class

AccessStorage
Class AccessStorage.

Namespace

Drupal\permissions_by_term\Service

Code

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();
}