1.20.x redirect.class.inc public Redirect::isNew()

Returns if this redirect is newly created and not yet saved.

File

modules/redirect/redirect.class.inc, line 150

Class

Redirect
Provides a HTTP redirect from one Backdrop internal path to another.

Code

public function isNew() {
  return !empty($this->is_new) || !$this->rid;
}