You are here

public function HttpblEvaluator::getPageRequestOption in http:BL 8

Examine config option for checking all page requests.

Return value

bool TRUE if checking all page requests, FALSE otherwise.

Overrides HttpblEvaluatorInterface::getPageRequestOption

File

src/HttpblEvaluator.php, line 131

Class

HttpblEvaluator
HttpblEvaluator evaluates visitor/host page requests.

Namespace

Drupal\httpbl

Code

public function getPageRequestOption() {
  $check_option = (int) \Drupal::state()
    ->get('httpbl.check');
  if ($check_option == HTTPBL_CHECK_ALL) {
    return TRUE;
  }
  return FALSE;
}