protected function OgRoleManager::ogRoleStorage in Organic groups 8
Retrieves the OG Role storage.
Return value
\Drupal\Core\Entity\EntityStorageInterface The OG Role storage
1 call to OgRoleManager::ogRoleStorage()
- OgRoleManager::getRolesByPermissions in src/
OgRoleManager.php - Returns all the roles that have a specific permission.
File
- src/
OgRoleManager.php, line 185
Class
- OgRoleManager
- Defines a manager of an OG role.
Namespace
Drupal\ogCode
protected function ogRoleStorage() {
if (!$this->ogRoleStorage) {
$this->ogRoleStorage = $this->entityTypeManager
->getStorage('og_role');
}
return $this->ogRoleStorage;
}