public function AccessStorage::deleteAllTermPermissionsByUserId in Permissions by Term 8
Same name and namespace in other branches
- 8.2 src/Service/AccessStorage.php \Drupal\permissions_by_term\Service\AccessStorage::deleteAllTermPermissionsByUserId()
Parameters
int $userId:
File
- src/
Service/ AccessStorage.php, line 279
Class
- AccessStorage
- Class AccessStorage.
Namespace
Drupal\permissions_by_term\ServiceCode
public function deleteAllTermPermissionsByUserId($userId) {
$this->database
->delete('permissions_by_term_user')
->condition('uid', $userId, '=')
->execute();
}