public function ProtectionRule::getBypassRoles in User protect 8
Returns a list of roles that may bypass this protection rule.
Return value
array A list of role names.
Overrides ProtectionRuleInterface::getBypassRoles
1 call to ProtectionRule::getBypassRoles()
- ProtectionRule::postSave in src/
Entity/ ProtectionRule.php - Acts on a saved entity before the insert or update hook is invoked.
File
- src/
Entity/ ProtectionRule.php, line 269
Class
- ProtectionRule
- Defines the Protection rule entity.
Namespace
Drupal\userprotect\EntityCode
public function getBypassRoles() {
return $this->bypassRoles;
}