You are here

public function BanIpManager::unbanIp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/ban/src/BanIpManager.php \Drupal\ban\BanIpManager::unbanIp()

Unbans an IP address.

Parameters

string $id: The IP address to unban.

Overrides BanIpManagerInterface::unbanIp

File

core/modules/ban/src/BanIpManager.php, line 56

Class

BanIpManager
Ban IP manager.

Namespace

Drupal\ban

Code

public function unbanIp($id) {
  $this->connection
    ->delete('ban_ip')
    ->condition('ip', $id)
    ->execute();
}