You are here

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

Parameters

int $userId:

File

src/Service/AccessStorage.php, line 288

Class

AccessStorage
Class AccessStorage.

Namespace

Drupal\permissions_by_term\Service

Code

public function deleteAllTermPermissionsByUserId($userId) {
  $this->database
    ->delete('permissions_by_term_user')
    ->condition('uid', $userId, '=')
    ->execute();
}