Fixed
Project:
ECA: Event - Condition - Action
Version:
3.1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2026 at 10:59 UTC
Updated:
13 Apr 2026 at 09:05 UTC
Jump to comment: Most recent
Comments
Comment #3
bisonbleu commentedThe MR fails on a PHPCS error reported for FormFieldSetDescription.php:36
This error also occurs with the existing FormFieldSetLabel.php:35. I'm not sure what to do about this…?
Comment #4
jurgenhaasI don't see any PHPCS errors in the pipeline of the MR. But there are a number of PHPStan errors that mostly seem to be related to the wrong namespace of the action plugin.
Comment #5
bisonbleu commentedOops! Sorry about that, I had tested it in a custom module. Fixed!
Comment #6
jurgenhaasI left a couple of comments in the MR, but it looks great already.
Comment #7
bisonbleu commentedI provided fixes for your comments.
As for «Needs tests», do you mean to update /eca/modules/form/tests/src/Kernel/FormActionsTest.php?
Not sure how to move forward with that…
Comment #8
jurgenhaasThe MR looks great, thanks for that.
Yes, the tests should go into FormActionsTest. If you want to give that a try, maybe with assistance from AI, then please give it a try. Otherwise, I'll get to it at some point. No worries.
Comment #9
jurgenhaasCongrats, this is great. One last thing: should we add a second test in the same method to make sure that the
#descriptionis unset if we provide an empty description?Comment #10
jurgenhaasLooking great, thanks a lot @bisonbleu
Maybe the test could be optimized by calling the action multiple times on the same form build event, but that's not worth holding back the issue for that.
So, I've merged this.