TYPO3 Logo
Form consent
Release: 3.1

Loading data.

  • Introduction
  • Installation
  • Configuration
    • Form finisher configuration
    • SiteSet configuration
    • TypoScript configuration
    • Extension configuration
  • Usage
    • Consent finisher
    • Validation plugin
    • Scheduler task
    • Dashboard widget
  • Developer corner
    • Configuration API
    • Consent factory
    • Events
    • JSON type
  • Migration
  • Contributing
  • Sitemap

Contributors Corner

  • View source of current document
  • How to edit
  • Edit current document on GitHub
  1. Double opt-in for EXT:form
  2. Developer corner
  3. Consent factory
Report issue View source How to edit Edit on GitHub

Consent factory

New consents are normally built by the consent finisher, based on the current FormRuntime. 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
\EliasHaeussler\Typo3FormConsent\Domain\Factory\ConsentFactory

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

See also

View the sources on GitHub:

  • ConsentFactory
  • Previous
  • Next
Reference to the headline

Copy and freely share the link

This link target has no permanent anchor assigned. You can make a pull request on GitHub to suggest an anchor. The link below can be used, but is prone to change if the page gets moved.

Copy this link into your TYPO3 manual.

  • Home
  • Contact
  • Issues
  • Repository

Last rendered: Nov 28, 2024 14:50

© since 2021 by Elias Häußler
  • Legal Notice
  • Privacy Policy