Closed (fixed)
Project:
Examples for Developers
Version:
8.x-1.x-dev
Component:
Form API Example
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2018 at 21:13 UTC
Updated:
27 Jul 2018 at 23:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mile23This would be a nice addition.
Is there a way to show this form handling validation and submit? The test will need an update to verify that it works.
Let's wrap this so it's easier to read as twig.
Comment #3
eojthebraveValidation and submit both work without any additions. So, I'm not really what else there is to show in the code other than maybe adding to the comments that someone should fill out the form to see it in action. There's already a test that verifies the form displays in the block. And, I feel like adding tests for whether submitForm works might just replicate the tests already in place for the SimpleForm form.
E.g.:
Though, if you think it's worthwhile to have independent tests for the form being submitted from the block I can write those. Thoughts?
Comment #4
mile23Minor improvements to description text, CS, converted class name string literals.
Comment #6
mile23And done. Thanks!