public function BanIpManager::unbanIp

Unbans an IP address.

Parameters

string $id: The IP address to unban.

File

drupal/core/modules/ban/lib/Drupal/ban/BanIpManager.php, line 91
Definition of Drupal\ban\BanIpManager.

Class

BanIpManager
Ban IP manager.

Namespace

Drupal\ban

Code

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