With the death of Open ID, so went the only usage of the rather hacky entity_form_submit().
Removing that also means we can inline entity_form_state_defaults().

In addition, entity_form_controller() hasn't be in use since #1831264: Use the Entity manager to create new controller instances.

And the last extraneous entity form function left in entity.inc was entity_form_submit_build_entity(), which was supposed to have been inlined into EntityFormController::buildEntity(), which I did.

2 files changed, 36 insertions(+), 121 deletions(-)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, small-entity-inc.patch, failed testing.

tim.plunkett’s picture

Assigned: Unassigned » tim.plunkett
Status: Needs work » Postponed
daffie’s picture

Issue summary: View changes
Status: Postponed » Active
tim.plunkett’s picture

Assigned: tim.plunkett » Unassigned
Issue tags: +Needs reroll
plopesc’s picture

Status: Active » Needs review
FileSize
4.74 KB

Basic re-roll, including minor changes.
Some changes have been addressed in other issues.

Regards.

andypost’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs reroll +API clean-up

I see no reason to deprecate this

chx’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
746 bytes
4.72 KB

Confirmed with timplunkett: \Drupal::entityManager() is just $this, look at what class we are in. I will re-RTBC once the bot picks up

chx’s picture

Status: Needs review » Reviewed & tested by the community
xjm’s picture

7: small-entity-inc-5.patch queued for re-testing.

webchick’s picture

Status: Reviewed & tested by the community » Fixed
2 files changed, 13 insertions, 74 deletions.

Nice diffstat. :)

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.