function contact_storage_test_contact_form_form_builder

Same name and namespace in other branches
  1. 9 core/modules/contact/tests/modules/contact_storage_test/contact_storage_test.module \contact_storage_test_contact_form_form_builder()
  2. 8.9.x core/modules/contact/tests/modules/contact_storage_test/contact_storage_test.module \contact_storage_test_contact_form_form_builder()
  3. 10 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 64

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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.