By catch on
Change record status:
Published (View all published change records)
Introduced in branch:
8.x
Issue links:
Description:
The following functions/hooks have been removed.
field_attach_form()
hook_field_attach_form()
field_attach_extract_form_values()
hook_field_attach_form_values()
field_attach_form_validate()
Use the Entity API instead: https://drupal.org/developing/api/entity
The $form_display argument has been removed from hook_ENTITY_TYPE_prepare_form() and hook_entity_prepare_form().
Impacts:
Module developers
Comments
Just to be clear there are no
Just to be clear there are no replacement methods for these functions. So by using the Entity API it is meant to alter the form manually in your entity form controller.
For example: I've used hook_field_attach_form() to reorder the form structure. Now I had to create a new method in my entity's form controller for that.
You can use EntityFormDisplay
You can use EntityFormDisplay to only render the fields: