public function ProtectionRuleInterface::getProtection in User protect 8
Returns a specific user protection.
Parameters
string $protection: The user protection plugin ID.
Return value
\Drupal\userprotect\Plugin\UserProtection\UserProtectionInterface The user protection object.
1 method overrides ProtectionRuleInterface::getProtection()
- ProtectionRule::getProtection in src/
Entity/ ProtectionRule.php - Returns a specific user protection.
File
- src/
Entity/ ProtectionRuleInterface.php, line 73
Class
- ProtectionRuleInterface
- Provides an interface defining a userprotect_rule entity.
Namespace
Drupal\userprotect\EntityCode
public function getProtection($protection);