You are here

public function ProtectionRuleInterface::getProtectedEntity in User protect 8

Gets the protected entity.

Return value

EntityInterface The loaded entity, if found. NULL otherwise.

1 method overrides ProtectionRuleInterface::getProtectedEntity()
ProtectionRule::getProtectedEntity in src/Entity/ProtectionRule.php
Gets the protected entity.

File

src/Entity/ProtectionRuleInterface.php, line 43

Class

ProtectionRuleInterface
Provides an interface defining a userprotect_rule entity.

Namespace

Drupal\userprotect\Entity

Code

public function getProtectedEntity();