public function closeModal(array $form, FormStateInterface $form_state) {
    $response = new AjaxResponse();
    $dashboard_url = $this->getUrlGenerator()
      ->generateFromRoute(OpenyUpgradeLogManager::DASHBOARD);
    $response->addCommand(new RedirectCommand($dashboard_url));
    $response->addCommand(new CloseModalDialogCommand());
    return $response;
  }
public function closeModal(array $form, FormStateInterface $form_state) {
    $response = new AjaxResponse();
    $dashboard_url = $this->getUrlGenerator()
      ->generateFromRoute(OpenyUpgradeLogManager::DASHBOARD);
    $response->addCommand(new RedirectCommand($dashboard_url));
    $response->addCommand(new CloseModalDialogCommand());
    return $response;
  }
public function closeModal ( array $ form , FormStateInterface $ form_state ) { $ response = new AjaxResponse ( ) ; $ dashboard_url = $ this -> getUrlGenerator ( ) -> generateFromRoute ( OpenyUpgradeLogManager :: DASHBOARD ) ; $ response -> addCommand ( new RedirectCommand ( $ dashboard_url ) ) ; $ response -> addCommand ( new CloseModalDialogCommand ( ) ) ; return $ response ; }
Close modal and redirect to dashboard.
Close modal and redirect to dashboard .