public MessageForm::preview(array $form, FormStateInterface $form_state)
Form submission handler for the 'preview' action.
File
- core/modules/contact/src/MessageForm.php, line 174
Class
- MessageForm
- Form controller for contact message forms.
Namespace
Drupal\contact
Code
1 2 3 4 5 | public function preview( array $form , FormStateInterface $form_state ) { $message = $this ->entity; $message ->preview = TRUE; $form_state ->setRebuild(); } |
Please login to continue.