public function LinkCheckerResponseCodes::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.
Overrides LinkCheckerResponseCodesInterface::isValid
File
- src/
LinkCheckerResponseCodes.php, line 63
Class
- LinkCheckerResponseCodes
- Class LinkcheckerResponseCodes.
Namespace
Drupal\linkcheckerCode
public function isValid(int $code) {
return array_key_exists($code, self::$responseCodes);
}