You are here

public static function UserProtect::pluginManager in User protect 8

Returns the user protection plugin manager.

Return value

\Drupal\userprotect\Plugin\UserProtection\UserProtectionManager An instance of UserProtectionManager.

4 calls to UserProtect::pluginManager()
ProtectionRule::getProtections in src/Entity/ProtectionRule.php
Returns the user protections for this protection rule.
ProtectionRuleUnitTest::setUp in tests/src/Kernel/Entity/ProtectionRuleUnitTest.php
UserProtectUnitTest::testPluginManager in tests/src/Unit/UserProtectUnitTest.php
@covers ::pluginManager
userprotect_form_user_form_alter in ./userprotect.module
Implements hook_form_FORM_ID_alter() for form "user_form".

File

src/UserProtect.php, line 16

Class

UserProtect
Provides wrappers for services.

Namespace

Drupal\userprotect

Code

public static function pluginManager() {
  return \Drupal::service('plugin.manager.userprotect.user_protection');
}