You are here

public function LingotekJobAssignToMultipleEntitiesForm::cancelForm in Lingotek Translation 3.2.x

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()
  2. 4.0.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()
  3. 3.0.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()
  4. 3.1.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()
  5. 3.3.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()
  6. 3.4.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()
  7. 3.5.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()
  8. 3.6.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()
  9. 3.7.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()
  10. 3.8.x src/Form/LingotekJobAssignToMultipleEntitiesForm.php \Drupal\lingotek\Form\LingotekJobAssignToMultipleEntitiesForm::cancelForm()

File

src/Form/LingotekJobAssignToMultipleEntitiesForm.php, line 162

Class

LingotekJobAssignToMultipleEntitiesForm
Form for bulk assignation of Job ID to content entities.

Namespace

Drupal\lingotek\Form

Code

public function cancelForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirectUrl(Url::fromUserInput('/' . $form_state
    ->getValue('destination')));

  // Clear selected data.
  $this->tempStore
    ->delete($this->currentUser
    ->id());
}