You are here

public function BanIpManager::unbanIp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 60
Contains \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();
}