You are here

public function Domain::getResponse in Domain Access 8

Retrieves the value of the response test.

Return value

int The HTTP response code of the domain test, expected to be 200.

Overrides DomainInterface::getResponse

File

domain/src/Entity/Domain.php, line 451

Class

Domain
Defines the domain entity.

Namespace

Drupal\domain\Entity

Code

public function getResponse() {
  if (empty($this->response)) {
    $validator = \Drupal::service('domain.validator');
    $validator
      ->checkResponse($this);
  }
  return $this->response;
}