You are here

public function DeleteAchievementsForm::closeModal in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Form/DeleteAchievementsForm.php \Drupal\opigno_learning_path\Form\DeleteAchievementsForm::closeModal()

Returns ajax response.

File

src/Form/DeleteAchievementsForm.php, line 207

Class

DeleteAchievementsForm
Class LearningPathAdminSettingsForm.

Namespace

Drupal\opigno_learning_path\Form

Code

public function closeModal(array &$form, FormStateInterface $form_state) {
  $response = new AjaxResponse();
  $response
    ->addCommand(new CloseModalDialogCommand());
  return $response;
}