You are here

function permissions_by_term_user_insert in Permissions by Term 8.2

Same name and namespace in other branches
  1. 8 permissions_by_term.module \permissions_by_term_user_insert()

Implements hook_user_insert().

File

./permissions_by_term.module, line 481
Allows access to terms in a vocabulary to be limited by user or role.

Code

function permissions_by_term_user_insert($user) {

  /**
   * @var \Drupal\permissions_by_term\Cache\CacheInvalidator $cacheInvalidator
   */
  $cacheInvalidator = \Drupal::service('permissions_by_term.cache_invalidator');
  $cacheInvalidator
    ->invalidate();
}