Skip to content
Commit 5a35b449 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Simplify DH by inlining SlugEnricher

DataHandler related class SlugEnricher is a scary
sounding class name for a simple operation that
sets incoming TCA type=slug fields to empty string
if not provided, to trigger slug calculation later.

The patch inlines that operation into DataHandler,
avoiding the class with three methods, a property,
and a set of array_* function calls, substituting
it with three foreach(), two if() and a helper
method that can be re-used.

Change-Id: I4452d9c50b43832db3cd4b7f538395054a3d67ab
Resolves: #103244
Releases: main
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83176


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent a774f597
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment