You are here

public function ContentTranslationRedirect::setStatusCode in Content Translation Redirect 8

Sets the redirect status code.

Parameters

int $code: Redirect status code.

Overrides ContentTranslationRedirectInterface::setStatusCode

File

src/Entity/ContentTranslationRedirect.php, line 73

Class

ContentTranslationRedirect
Defines the Content Translation Redirect entity.

Namespace

Drupal\content_translation_redirect\Entity

Code

public function setStatusCode($code) {
  $this->code = $code;
}