You are here

public function Redirect::getStatusCode in Redirect 8

Gets the redirect status code.

Return value

int The redirect status code.

File

src/Entity/Redirect.php, line 119

Class

Redirect
The redirect entity class.

Namespace

Drupal\redirect\Entity

Code

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