TYPO3 Logo
Form consent
Release: 2.0

Loading data.

  • Introduction
  • Installation
  • Configuration
    • Form finisher 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
  • Index

PAGE CONTENTS

  • Consent factory
  1. Start
  2. Developer corner
  3. Consent factory
View source How to edit Edit on GitHub

Display settings


Color scheme of code blocks:


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 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.

Parameters
  • $finisherOptions (EliasHaeussler\Typo3FormConsent\Domain\Finishers\FinisherOptions) -- Consent finisher options of the current form

  • $finisherContext (TYPO3\CMS\Form\Domain\Finishers\FinisherContext) -- The current finisher context

Return type

EliasHaeussler\Typo3FormConsent\Domain\Model\Consent

See also

View the sources on GitHub:

  • ConsentFactory

  • Previous
  • Next
  • Home
  • Contact
  • Issues
  • Repository

Page last updated: Jan 22, 2024 16:40

Last rendered: Jan 22, 2024 16:41

  • TYPO3 Theme 4.9.0
  • DRC v3.2.1
© Copyright since 2021 by Elias Häußler
  • Legal Notice
  • Privacy Policy
  • Code of Conduct