function ContactStorageTestHooks::contactFormBuilder
Entity builder for the contact form edit form with third party options.
See also
contact_storage_test_form_contact_form_edit_form_alter()
File
-
core/
modules/ contact/ tests/ modules/ contact_storage_test/ src/ Hook/ ContactStorageTestHooks.php, line 66
Class
- ContactStorageTestHooks
- Hook implementations for contact_storage_test.
Namespace
Drupal\contact_storage_test\HookCode
public function contactFormBuilder($entity_type, ContactFormInterface $contact_form, &$form, FormStateInterface $form_state) : void {
$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.