You are here

public static function AutobanUtils::isFromAnalyze in Automatic IP ban (Autoban) 8

Is from Analyze page.

Parameters

string $string: Autoban string.

Return value

bool Is from analyze?

2 calls to AutobanUtils::isFromAnalyze()
AutobanController::getBannedIp in src/Controller/AutobanController.php
Retrieve IP addresses for autoban rule.
AutobanTestForm::buildForm in src/Form/AutobanTestForm.php
Form constructor.

File

src/AutobanUtils.php, line 36
Contains \Drupal\autoban\Utils.

Class

AutobanUtils
Class AutobanUtils.

Namespace

Drupal\autoban

Code

public static function isFromAnalyze($string) {
  return trim($string) === self::AUTOBAN_FROM_ANALYZE;
}