You are here

interface UserRestrictionsManagerInterface in User restrictions 8

Defines the UserRestrictionManager interface.

Hierarchy

Expanded class hierarchy of UserRestrictionsManagerInterface

All classes that implement UserRestrictionsManagerInterface

File

src/UserRestrictionsManagerInterface.php, line 8

Namespace

Drupal\user_restrictions
View source
interface UserRestrictionsManagerInterface {

  /**
   * Check if a the given data matches any restrictions.
   *
   * @param array $data
   *   Data to check.
   *
   * @return bool
   *   TRUE if the data matches a restriction, FALSE otherwise.
   */
  public function matchesRestrictions(array $data);

  /**
   * Delete expired rules.
   *
   * @return \Drupal\user_restrictions\UserRestrictionsManagerInterface
   *   The service for chaining.
   */
  public function deleteExpiredRules();

  /**
   * Get all error messages.
   *
   * @return string[]
   *   List of error messages keyed by restriction type.
   */
  public function getErrors();

}

Members

Namesort descending Modifiers Type Description Overrides
UserRestrictionsManagerInterface::deleteExpiredRules public function Delete expired rules. 1
UserRestrictionsManagerInterface::getErrors public function Get all error messages. 1
UserRestrictionsManagerInterface::matchesRestrictions public function Check if a the given data matches any restrictions. 1