public function ProtectionRule::getPermissionName in User protect 8
Returns the name of the permission to bypass the protection rule.
Return value
string The permission name.
Overrides ProtectionRuleInterface::getPermissionName
1 call to ProtectionRule::getPermissionName()
- 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 315
Class
- ProtectionRule
- Defines the Protection rule entity.
Namespace
Drupal\userprotect\EntityCode
public function getPermissionName() {
return 'userprotect.' . $this
->id() . '.bypass';
}