You are here

public function AdvbanIpManagerInterface::banIp in Advanced ban 8

Bans an IP address.

Parameters

string $ip: The IP address to ban.

string $ip_end: The end of the IP address to ban (optional).

int $expiry_date: Expiry date of IP ban (optional).

1 method overrides AdvbanIpManagerInterface::banIp()
AdvbanIpManager::banIp in src/AdvbanIpManager.php
Bans an IP address.

File

src/AdvbanIpManagerInterface.php, line 42

Class

AdvbanIpManagerInterface
Provides an interface defining a AdvbanIp manager.

Namespace

Drupal\advban

Code

public function banIp($ip, $ip_end, $expiry_date);