class UserProtect in User protect 8
Provides wrappers for services.
Hierarchy
- class \Drupal\userprotect\UserProtect
Expanded class hierarchy of UserProtect
4 files declare their use of UserProtect
- ProtectionRule.php in src/
Entity/ ProtectionRule.php - ProtectionRuleUnitTest.php in tests/
src/ Kernel/ Entity/ ProtectionRuleUnitTest.php - userprotect.module in ./
userprotect.module - Allows admins to protect users from being edited or cancelled.
- UserProtectUnitTest.php in tests/
src/ Unit/ UserProtectUnitTest.php
File
- src/
UserProtect.php, line 8
Namespace
Drupal\userprotectView source
class UserProtect {
/**
* Returns the user protection plugin manager.
*
* @return \Drupal\userprotect\Plugin\UserProtection\UserProtectionManager
* An instance of UserProtectionManager.
*/
public static function pluginManager() {
return \Drupal::service('plugin.manager.userprotect.user_protection');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserProtect:: |
public static | function | Returns the user protection plugin manager. |