public function OgRoleInterface::setRoleType in Organic groups 8
Sets the role type.
Parameters
string $role_type: The role type to set. One of OgRoleInterface::ROLE_TYPE_REQUIRED or OgRoleInterface::ROLE_TYPE_STANDARD.
Return value
$this
Throws
\InvalidArgumentException Thrown when an invalid role type is given.
1 method overrides OgRoleInterface::setRoleType()
- OgRole::setRoleType in src/
Entity/ OgRole.php - Sets the role type.
File
- src/
OgRoleInterface.php, line 128
Class
- OgRoleInterface
- Provides an interface defining an OG user role entity.
Namespace
Drupal\ogCode
public function setRoleType($role_type);