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\EntityCode
public function getRedirectUrl() {
  return $this
    ->get('redirect_redirect')
    ->get(0)
    ->getUrl();
}