You are here

public function DomainInterface::setRedirect in Domain Access 8

Sets a redirect on the current domain.

Parameters

int $code: A valid HTTP redirect code (301 or 302).

1 method overrides DomainInterface::setRedirect()
Domain::setRedirect in domain/src/Entity/Domain.php
Sets a redirect on the current domain.

File

domain/src/DomainInterface.php, line 160

Class

DomainInterface
Provides an interface defining a domain entity.

Namespace

Drupal\domain

Code

public function setRedirect($code = 302);