You are here

public function LinkCheckerLink::setStatusCode in Link checker 8

Sets a response status code.

Parameters

int $code: The status code.

Return value

$this

Overrides LinkCheckerLinkInterface::setStatusCode

File

src/Entity/LinkCheckerLink.php, line 126

Class

LinkCheckerLink
Defines the linkcheckerlink type entity.

Namespace

Drupal\linkchecker\Entity

Code

public function setStatusCode($code) {
  $this
    ->set('code', $code);
  return $this;
}