Deprecation: #92435 - StandaloneView for EmailFinisher¶
See forge#92435
Description¶
The EmailFinisher
class of EXT:form was extended for the possibility to use
FluidEmail in TYPO3 v10. Therefore the previously used StandaloneView has now been marked as
deprecated along with the configuration option templatePathAndFilename
.
Impact¶
Using the StandaloneView will trigger a PHP E_USER_DEPRECATED
error. Using
templatePathAndFilename
for custom templates will also trigger a
PHP E_USER_DEPRECATED
error.
Affected Installations¶
All installations not already using FluidEmail for the EXT:form EmailFinisher.
Migration¶
Adjust your finisher configuration to use FluidEmail by setting useFluidEmail: true
.
Before:
finishers:
-
identifier: EmailToReceiver
options:
useFluidEmail: false
After:
finishers:
-
identifier: EmailToReceiver
options:
useFluidEmail: true
For custom templates, replace templatePathAndFilename
with templateName
and templateRootPaths
.
Before:
finishersDefinition:
EmailToReceiver:
options:
templatePathAndFilename: EXT:sitepackage/Resources/Private/Templates/Email/ContactForm.html
After:
finishersDefinition:
EmailToReceiver:
options:
templateName: ContactForm
templateRootPaths:
100: 'EXT:sitepackage/Resources/Private/Templates/Email/'