Same name in other branches
- 2.x src/Form/EntityCloneForm.php \Drupal\entity_clone\Form\EntityCloneForm::cancelForm()
Cancel form handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
-
src/
Form/ EntityCloneForm.php, line 236
Class
- EntityCloneForm
- Implements an entity Clone form.
Namespace
Drupal\entity_clone\FormCode
public function cancelForm(array &$form, FormStateInterface $form_state) {
$this->formSetRedirect($form_state, $this->entity);
}