public function ProtectionRuleInterface::setProtectedEntityId in User protect 8
Gets the protected entity id.
Parameters
string|int $entity_id: ID of the entity that should be protected.
Return value
\Drupal\userprotect\Entity\ProtectionRuleInterface The class instance this method is called on.
1 method overrides ProtectionRuleInterface::setProtectedEntityId()
- ProtectionRule::setProtectedEntityId in src/
Entity/ ProtectionRule.php - Gets the protected entity id.
File
- src/
Entity/ ProtectionRuleInterface.php, line 62
Class
- ProtectionRuleInterface
- Provides an interface defining a userprotect_rule entity.
Namespace
Drupal\userprotect\EntityCode
public function setProtectedEntityId($entity_id);