You are here

interface LoginFirewallInterface in Restrict Login or Role Access by IP Address 8.4

Interface LoginFirewallInterface.

@package Drupal\restrict_by_ip

Hierarchy

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_ip
View 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

Namesort descending Modifiers Type Description Overrides
LoginFirewallInterface::execute public function Checks that login is allowed, and takes appropriate action if not. 1
LoginFirewallInterface::isLoginAllowed public function Checks that a user is allowed to login based on IP whitelists. 1