You are here

public function Redirect::getRedirectUrl in Redirect 8

Gets the redirect URL.

Return value

\Drupal\Core\Url The redirect URL.

File

src/Entity/Redirect.php, line 220

Class

Redirect
The redirect entity class.

Namespace

Drupal\redirect\Entity

Code

public function getRedirectUrl() {
  return $this
    ->get('redirect_redirect')
    ->get(0)
    ->getUrl();
}