public function Redirect::setStatusCode in Redirect 8
Sets the redirect status code.
Parameters
int $status_code: The redirect status code.
File
- src/
Entity/ Redirect.php, line 109
Class
- Redirect
- The redirect entity class.
Namespace
Drupal\redirect\EntityCode
public function setStatusCode($status_code) {
$this
->set('status_code', $status_code);
}