You are here

class UserProtect in User protect 8

Provides wrappers for services.

Hierarchy

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\userprotect
View 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

Namesort descending Modifiers Type Description Overrides
UserProtect::pluginManager public static function Returns the user protection plugin manager.