private function AutobanListBuilder::getBanProvidersList in Automatic IP ban (Autoban) 8
Get ban providers list.
Return value
array An array ban providers name.
1 call to AutobanListBuilder::getBanProvidersList()
- AutobanListBuilder::buildRow in src/
Controller/ AutobanListBuilder.php - Builds a row for an entity in the entity listing.
File
- src/
Controller/ AutobanListBuilder.php, line 70
Class
- AutobanListBuilder
- Provides a listing of autoban entities.
Namespace
Drupal\autoban\ControllerCode
private function getBanProvidersList() {
$controller = $this->autoban;
$providers = [];
$banManagerList = $controller
->getBanProvidersList();
if (!empty($banManagerList)) {
foreach ($banManagerList as $id => $item) {
$providers[$id] = $item['name'];
}
}
return $providers;
}