6 calls to OgRole::loadByGroupAndName() in Organic groups 8
- GroupLevelAccessTest::setUp in tests/
src/ Kernel/ Access/ GroupLevelAccessTest.php - GroupLevelAccessTest::testUserAccessArbitraryPermissions in tests/
src/ Kernel/ Access/ GroupLevelAccessTest.php - Test access to an arbitrary permission.
- OgAccess::userAccess in src/
OgAccess.php - Determines whether a user has a group permission in a given group.
- OgGroupContentOperationAccessTest::setUp in tests/
src/ Kernel/ Access/ OgGroupContentOperationAccessTest.php - OgMembershipTest::testSaveMembershipWithInvalidRoles in tests/
src/ Kernel/ Entity/ OgMembershipTest.php - Tests an exception is thrown when saving a membership with invalid roles.
- og_test_entity_insert in tests/
modules/ og_test/ og_test.module - Implements hook_entity_insert().