You are here

public function AutobanController::getBanManagerDataRule in Automatic IP ban (Autoban) 8

Get IP Ban Manager data from autoban rule.

Parameters

string $rule: Autoban rule ID.

Return value

array Ban manager object and ban_type.

1 call to AutobanController::getBanManagerDataRule()
AutobanController::banIpList in src/Controller/AutobanController.php
Ban addresses.

File

src/Controller/AutobanController.php, line 171

Class

AutobanController
Provides an Autoban functional.

Namespace

Drupal\autoban\Controller

Code

public function getBanManagerDataRule($rule) {
  $entity = Autoban::load($rule);
  return $this
    ->getBanManagerData($entity->provider);
}