public function OgRole::getRoleType in Organic groups 8
Returns the role type.
Return value
string The role type. One of OgRoleInterface::ROLE_TYPE_REQUIRED or OgRoleInterface::ROLE_TYPE_STANDARD.
Overrides OgRoleInterface::getRoleType
File
- src/
Entity/ OgRole.php, line 123
Class
- OgRole
- Defines the OG user role entity class.
Namespace
Drupal\og\EntityCode
public function getRoleType() {
return $this
->get('role_type') ?: OgRoleInterface::ROLE_TYPE_STANDARD;
}