function BanIpManagerInterface::banIp

Same name in other branches
  1. 9 core/modules/ban/src/BanIpManagerInterface.php \Drupal\ban\BanIpManagerInterface::banIp()
  2. 8.9.x core/modules/ban/src/BanIpManagerInterface.php \Drupal\ban\BanIpManagerInterface::banIp()
  3. 10 core/modules/ban/src/BanIpManagerInterface.php \Drupal\ban\BanIpManagerInterface::banIp()

Bans an IP address.

Parameters

string $ip: The IP address to ban.

File

core/modules/ban/src/BanIpManagerInterface.php, line 35

Class

BanIpManagerInterface
Provides an interface defining a BanIp manager.

Namespace

Drupal\ban

Code

public function banIp($ip);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.