Review main Abandoned

90157[FEATURE] Support additional parameters for TCA slug prefix userFunc

Benni Mack CR 0 V 0 Normal +125 −4 updated 07/25/25, 09:13

Commit message

TCA slug fields can now receive additional parameters in their
prefix user functions through the new 'prefixParameters' configuration
option. This allows for more flexible slug prefix rendering.

Example usage:
'config' => [
    'type' => 'slug',
    'appearance' => [
        'prefix' => MyClass::class . '->generatePrefix',
        'prefixParameters' => ['customKey' => 'customValue']
    ]
]

The additional parameters are accessible via $parameters['parameters']
in the user function.

Review

  • Code review CR 0
  • Verified V 0

Issues 1

Files 2

Review log 2

  1. Benni Mack uploaded patch set 1 07/25/25, 09:12

  2. Benni Mack abandoned the change 07/25/25, 09:13