- 🇬🇧United Kingdom joachim
> I guess it would make sense to document it on the same page where other form callbacks like #validate or #submit are documented?
#entity_builders is specific to the EntityForm class though, not a general FormAPI thing.
EntityForm::entityFormEntityBuild() is the thing that consumes these, so that's the logical place to put some documentation.
Maybe the class docs for EntityForm can mention it too. Probably sensible to put the bulk of it there, as it's more immediately visible if you're reading up about that class.
- 🇩🇪Germany Grevil
Bumping once again, as I am not sure when and why to use this, for example when hooking into a form.
- 🇩🇪Germany geek-merlin Freiburg, Germany
@Grevil: It's the standardized way of extracting form values / building the entity, and used not only in submit.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
(I am removing a tag, since tags should not duplicate what already selected for the Component field. I apologize for bumping this issue.)
- 🇪🇨Ecuador jwilson3
Bump. I've inherited the Label Help contrib module some time ago and at least two completely separate bugs have been filed which I suspect may be related to the Entity Builders Callback usage in the module. I'm currently trying to figure out why the original author who is no longer around used #entity_builders in code from 7 years ago to set third-party settings.
https://git.drupalcode.org/project/label_help/-/blob/376c641da6a72eb868d...
It seems like this could be done in a #form_submit, but I'm not entirely certain.
I'm creating a tag to group such issues.