Consent factory
New consents are normally built by the consent finisher,
based on the current Form
. In order to better separate
the actual consent building process from the form submission, a
dedicated consent factory is provided.
- class ConsentFactory
-
- Fully qualified name
-
\Elias
Haeussler\ Typo3Form Consent\ Domain\ Factory\ Consent Factory
Factory class to create new consents from a given form.
- createFromForm ( $finisherOptions, $finisherContext)
-
Create a new form consent from the given form, derived from the given finisher options.
Tip
This method's result can be modified by listening on the ModifyConsentEvent.
- param EliasHaeussler\Typo3FormConsent\Domain\Finishers\FinisherOptions $finisherOptions
-
Consent finisher options of the current form
- param TYPO3\CMS\Form\Domain\Finishers\FinisherContext $finisherContext
-
The current finisher context
- returntype
-
EliasHaeussler\Typo3FormConsent\Domain\Model\Consent