Paul Weidner
3505e80124
Refactor quick form route building to a single route
2023-10-06 14:11:10 -04:00
Michael Stenta
11c6e5be7e
Refactor QuickFormInstanceManager to return config entities.
2023-10-06 14:11:10 -04:00
Michael Stenta
78943d239d
Provide a QuickFormInstanceManager service class with helper methods for instantiating quick form plugins.
2023-10-06 14:11:10 -04:00
Michael Stenta
3f559e77e9
Rename QuickFormManager to QuickFormPluginManager.
2023-10-06 14:11:10 -04:00
Michael Stenta
05c7da18b4
Extend QuickFormInterface from FormInterface.
...
We already implement buildForm(), validateForm(), and submitForm().
The only method this adds is getFormId(). So we will also refactor
how getFormId() works in \Drupal\farm_quick\Form\QuickForm to get
it from plugin instances instead of generating it itself.
2023-10-06 13:58:57 -04:00
Paul Weidner
7463f81f1d
Implement BaseFormIdInterface and build a unique form ID from the id route parameter.
2022-06-27 11:33:25 -07:00
Michael Stenta
2219a712cc
Allow quick forms to control access via permissions and/or an access() method.
2021-10-27 13:45:18 -04:00
Michael Stenta
2f6e556d01
Add a form wrapper class for rendering quick forms at /quick/{id}
2021-10-27 13:45:18 -04:00