BanIpManager::unbanIp

public BanIpManager::unbanIp($id)

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();
}
doc_Drupal
2016-10-29 08:45:29
Comments
Leave a Comment

Please login to continue.