You are here

UserProtect.php in User protect 8

Namespace

Drupal\userprotect

File

src/UserProtect.php
View source
<?php

namespace Drupal\userprotect;


/**
 * Provides wrappers for services.
 */
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');
  }

}

Classes

Namesort descending Description
UserProtect Provides wrappers for services.