interface UserRestrictionsManagerInterface in User restrictions 8
Defines the UserRestrictionManager interface.
Hierarchy
- interface \Drupal\user_restrictions\UserRestrictionsManagerInterface
Expanded class hierarchy of UserRestrictionsManagerInterface
All classes that implement UserRestrictionsManagerInterface
File
- src/
UserRestrictionsManagerInterface.php, line 8
Namespace
Drupal\user_restrictionsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserRestrictionsManagerInterface:: |
public | function | Delete expired rules. | 1 |
UserRestrictionsManagerInterface:: |
public | function | Get all error messages. | 1 |
UserRestrictionsManagerInterface:: |
public | function | Check if a the given data matches any restrictions. | 1 |