You are here

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

Parameters

array $aUserIdsAccessRemove:

int $term_id:

1 call to AccessStorage::deleteTermPermissionsByUserIds()
AccessStorage::saveTermPermissions in src/Service/AccessStorage.php
*

File

src/Service/AccessStorage.php, line 252

Class

AccessStorage
Class AccessStorage.

Namespace

Drupal\permissions_by_term\Service

Code

public function deleteTermPermissionsByUserIds($aUserIdsAccessRemove, $term_id, $langcode) {
  foreach ($aUserIdsAccessRemove as $iUserId) {
    $this->database
      ->delete('permissions_by_term_user')
      ->condition('uid', $iUserId, '=')
      ->condition('tid', $term_id, '=')
      ->condition('langcode', $langcode, '=')
      ->execute();
  }
}