You are here

public function UserRestrictionTypeInterface::matches in User restrictions 8

Check if the given data matches the restriction.

Parameters

array $data: Data to check.

Return value

bool TRUE if the value matches one of the restrictions, FALSE otherwise.

3 methods override UserRestrictionTypeInterface::matches()
ClientIp::matches in src/Plugin/UserRestrictionType/ClientIp.php
Check if the given data matches the restriction.
Email::matches in src/Plugin/UserRestrictionType/Email.php
Check if the given data matches the restriction.
Name::matches in src/Plugin/UserRestrictionType/Name.php
Check if the given data matches the restriction.

File

src/Plugin/UserRestrictionTypeInterface.php, line 21

Class

UserRestrictionTypeInterface
Defines the interface for UserRestrictionType plugins.

Namespace

Drupal\user_restrictions\Plugin

Code

public function matches(array $data);