You are here

public function LinkCheckerLink::getStatusCode in Link checker 8

Gets a response status code.

-1 means the link was not checked.

Return value

int The status code.

Overrides LinkCheckerLinkInterface::getStatusCode

File

src/Entity/LinkCheckerLink.php, line 119

Class

LinkCheckerLink
Defines the linkcheckerlink type entity.

Namespace

Drupal\linkchecker\Entity

Code

public function getStatusCode() {
  return $this
    ->get('code')->value;
}