public function GroupRoleStorageInterface::resetUserGroupRoleCache in Group 8
Same name and namespace in other branches
- 2.0.x src/Entity/Storage/GroupRoleStorageInterface.php \Drupal\group\Entity\Storage\GroupRoleStorageInterface::resetUserGroupRoleCache()
Resets the internal, static cache used by ::loadByUserAndGroup().
Parameters
\Drupal\Core\Session\AccountInterface $account: The account to reset the cached group roles for.
\Drupal\group\Entity\GroupInterface $group: (optional) The group to reset the user's cached group roles for. Leave blank to reset the user's roles in all groups.
1 method overrides GroupRoleStorageInterface::resetUserGroupRoleCache()
- GroupRoleStorage::resetUserGroupRoleCache in src/
Entity/ Storage/ GroupRoleStorage.php - Resets the internal, static cache used by ::loadByUserAndGroup().
File
- src/
Entity/ Storage/ GroupRoleStorageInterface.php, line 94
Class
- GroupRoleStorageInterface
- Defines an interface for group role entity storage classes.
Namespace
Drupal\group\Entity\StorageCode
public function resetUserGroupRoleCache(AccountInterface $account, GroupInterface $group = NULL);