You are here

public function ContentExport::redirectTo in Content Export YAML 8

redirect to url

File

src/ContentExport.php, line 503

Class

ContentExport
Created by PhpStorm. User: USER Date: 11/13/18 Time: 2:04 PM

Namespace

Drupal\content_export_yaml

Code

public function redirectTo($url, $lang = NULL) {
  global $base_url;
  $path = $base_url . '/' . $url;
  $response = new RedirectResponse($path, 302);
  $response
    ->send();
  return;
}