public function ProtectionRuleInterface::appliesTo in User protect 8
Returns if this rule applies to the given user.
Parameters
\Drupal\user\UserInterface $user: The user to check.
Return value
bool TRUE if this rule applies to the given user. FALSE otherwise.
1 method overrides ProtectionRuleInterface::appliesTo()
- ProtectionRule::appliesTo in src/
Entity/ ProtectionRule.php  - Returns if this rule applies to the given user.
 
File
- src/
Entity/ ProtectionRuleInterface.php, line 155  
Class
- ProtectionRuleInterface
 - Provides an interface defining a userprotect_rule entity.
 
Namespace
Drupal\userprotect\EntityCode
public function appliesTo(UserInterface $user);