public function AccessStorage::deleteAllTermPermissionsByTid in Permissions by Term 8
Same name and namespace in other branches
- 8.2 src/Service/AccessStorage.php \Drupal\permissions_by_term\Service\AccessStorage::deleteAllTermPermissionsByTid()
Delete access storage when a term is removed.
Parameters
int $term_id: The term ID being deleted.
File
- src/
Service/ AccessStorage.php, line 291
Class
- AccessStorage
- Class AccessStorage.
Namespace
Drupal\permissions_by_term\ServiceCode
public function deleteAllTermPermissionsByTid($term_id) {
$this->database
->delete('permissions_by_term_user')
->condition('tid', $term_id, '=')
->execute();
$this->database
->delete('permissions_by_term_role')
->condition('tid', $term_id, '=')
->execute();
}