interface LoginFirewallInterface in Restrict Login or Role Access by IP Address 8.4
Interface LoginFirewallInterface.
@package Drupal\restrict_by_ip
Hierarchy
- interface \Drupal\restrict_by_ip\LoginFirewallInterface
Expanded class hierarchy of LoginFirewallInterface
All classes that implement LoginFirewallInterface
1 file declares its use of LoginFirewallInterface
- FirewallSubscriber.php in src/
EventSubscriber/ FirewallSubscriber.php
File
- src/
LoginFirewallInterface.php, line 12
Namespace
Drupal\restrict_by_ipView source
interface LoginFirewallInterface {
/**
* Checks that a user is allowed to login based on IP whitelists.
*
* @param \Drupal\Core\Session\AccountInterface $account
* The user to check if login is allowed.
*
* @return bool
* Whether login is allowed or not.
*/
public function isLoginAllowed(AccountInterface $account);
/**
* Checks that login is allowed, and takes appropriate action if not.
*
* @param \Drupal\Core\Session\AccountInterface $account
* The user to check if login is allowed.
*/
public function execute(AccountInterface $account);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LoginFirewallInterface:: |
public | function | Checks that login is allowed, and takes appropriate action if not. | 1 |
LoginFirewallInterface:: |
public | function | Checks that a user is allowed to login based on IP whitelists. | 1 |