Form submission handler for the 'preview' action.
File
- drupal/core/modules/contact/lib/Drupal/contact/MessageFormController.php, line 130
- Definition of Drupal\contact\MessageFormController.
Class
- MessageFormController
- Form controller for contact message forms.
Namespace
Drupal\contact
Code
public function preview(array $form, array &$form_state) {
$message = $this->entity;
$message->preview = TRUE;
$form_state['rebuild'] = TRUE;
}