public function ProtectionRule::id in User protect 8
Overrides Drupal\Core\Entity\Entity::id().
Overrides EntityBase::id
1 call to ProtectionRule::id()
- ProtectionRule::getPermissionName in src/
Entity/ ProtectionRule.php - Returns the name of the permission to bypass the protection rule.
File
- src/
Entity/ ProtectionRule.php, line 121
Class
- ProtectionRule
- Defines the Protection rule entity.
Namespace
Drupal\userprotect\EntityCode
public function id() {
return $this->name;
}