public function MessageForm::preview in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/contact/src/MessageForm.php \Drupal\contact\MessageForm::preview()
Form submission handler for the 'preview' action.
File
- core/
modules/ contact/ src/ MessageForm.php, line 179 - Contains \Drupal\contact\MessageForm.
Class
- MessageForm
- Form controller for contact message forms.
Namespace
Drupal\contactCode
public function preview(array $form, FormStateInterface $form_state) {
$message = $this->entity;
$message->preview = TRUE;
$form_state
->setRebuild();
}