function contact_storage_test_contact_form_form_builder in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/contact/tests/modules/contact_storage_test/contact_storage_test.module \contact_storage_test_contact_form_form_builder()
Entity builder for the contact form edit form with third party options.
See also
contact_storage_test_form_contact_form_edit_form_alter()
1 string reference to 'contact_storage_test_contact_form_form_builder'
- contact_storage_test_form_contact_form_form_alter in core/
modules/ contact/ tests/ modules/ contact_storage_test/ contact_storage_test.module - Implements hook_form_FORM_ID_alter() for contact_form_form().
File
- core/
modules/ contact/ tests/ modules/ contact_storage_test/ contact_storage_test.module, line 63 - Contains custom contact message functionality for ContactStorageTest.
Code
function contact_storage_test_contact_form_form_builder($entity_type, ContactFormInterface $contact_form, &$form, FormStateInterface $form_state) {
$contact_form
->setThirdPartySetting('contact_storage_test', 'send_a_pony', $form_state
->getValue('send_a_pony'));
}