You are here

public function DomainValidatorInterface::checkResponse in Domain Access 8

Tests that a domain responds correctly.

This is a server-level configuration test. The core module provides an image file that we use to test the validity of domain-generated URLs.

That file is /domain/tests/200.png.

Parameters

\Drupal\domain\DomainInterface $domain: A domain record.

Return value

int The server response code for the request.

1 method overrides DomainValidatorInterface::checkResponse()
DomainValidator::checkResponse in domain/src/DomainValidator.php
Tests that a domain responds correctly.

File

domain/src/DomainValidatorInterface.php, line 35

Class

DomainValidatorInterface
Supplies validator methods for common domain requests.

Namespace

Drupal\domain

Code

public function checkResponse(DomainInterface $domain);