You are here

public function LinkCheckerResponseCodesInterface::isValid in Link checker 8

Check if the given HTTP response code is valid.

Parameters

int $code: An numeric response code.

Return value

bool TRUE if the status code is valid, otherwise FALSE.

1 method overrides LinkCheckerResponseCodesInterface::isValid()
LinkCheckerResponseCodes::isValid in src/LinkCheckerResponseCodes.php
Check if the given HTTP response code is valid.

File

src/LinkCheckerResponseCodesInterface.php, line 21

Class

LinkCheckerResponseCodesInterface
Class LinkcheckerResponseCodes.

Namespace

Drupal\linkchecker

Code

public function isValid(int $code);