public function EntityCloneForm::cancelForm in Entity Clone 8
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 229
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);
}