- Issue created by @Liam Morland
- Merge request !10836Issue #3497970: Add return statement to BlockContentForm::save() β (Open) created by Liam Morland
- π¨πSwitzerland berdir Switzerland
There is at least one existing issue about this where I argued that the documentation is pretty weird as this is a form callback and form callbacks don't have return values.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
I see. Unless I am misreading things, the interface stays that it is supposed to return one of the two constants used in the merge request. So, this suggests there is a deeper architectural issue at play here.
- πΊπΈUnited States smustgrave
Seems like this still needs work and agreement on best path forward.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
@berdir, are you saying that
EntityFormInterface::save()
andEntityForm::save()
should not return? Or are you saying that those should return butBlockContentForm::save()
should not?I note that the tests still pass with the return statement added.
- π¨πSwitzerland berdir Switzerland
Closing as duplicate of π Remove return value from EntityFormInterface::save Needs work , see discussion there.