Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Aug 2012 at 12:52 UTC
Updated:
29 Jul 2014 at 21:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
plachSee commit c6725b5 and the whole topic branch.
Comment #2
plachTagging
Comment #3
plachBetter title
Comment #3.0
plachUpdated issue summary
Comment #3.1
plachUpdated issue summary.
Comment #4
plachMoving to the core queue since this is a prerequisite for the work on the Entity Translation UI.
We need a patch from the topic branch here, back to active meanwhile.
Comment #5
plachMore tags
Comment #6
plachBumping to major since this is a blocker for the first UI patch.
Comment #6.0
plachUpdated issue summary.
Comment #7
peximo commentedThe attached patch implements basic entity test page callbacks for CRUD operations and the related form controller.
It also adds some tests for this functions.
Comment #8
peximo commentedComment #9
plachSimple and straightforward.
Comment #10
plachSorry, just realized that the delete page callback is not used and needs to be removed:
Since we are rolling a new patch can we perform the minor/cosmetic changes below?
It would be nice to add a comment explaining why we need this, something like:
"Always load the entity from the database to ensure that changes are correctly picked up."
Can we move this line up? Also, the PASS_THROUGH should not be needed here, since there is no HTML in the passed string.
Comment #11
peximo commentedModified as suggested.
Comment #12
plachBack to RTBC.
Comment #13
catchThis no longer applies after the entity.module > \Drupal\Core\Entity move.
Comment #14
plachRerolling
Comment #15
fagoAfter saving $entity->isNew() will never return TRUE, so this won't work as intended.
Comment #16
plachRerolled and fixed #15 (the interdiff covers only the latter change).
Comment #17
plachForgot to adjust some PHP docs.
Comment #18
plachI think #17 should be RTBC again.
Comment #19
webchickLooks good!
Committed and pushed to 8.x. Thanks!
Comment #20
gábor hojtsyThanks, removing from the sprint.
Comment #21.0
(not verified) commentedUpdated issue summary.