Closed (duplicate)
Project:
Drupal core
Version:
8.7.x-dev
Component:
entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2018 at 07:50 UTC
Updated:
18 Nov 2018 at 09:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
xanoComment #3
xanoComment #4
xanoI added a change record.
Comment #6
xanoComment #7
joachim commentedThanks for filing this! :)
The real change here is in the Entity system, and I think this needs input from the maintainer.
Comment #8
amateescu commentedI think the existing hooks can do their job just fine, as proven by the current implementation in the Workspaces module. IMO there's no need to introduce two new hooks, we should fix their documentation instead.
Comment #9
joachim commented> we should fix their documentation instead.
Their documentation is not wrong. Workspaces module is misusing them. This isn't a bugfix, this is an API addition. Some of this discussion was already had over at the issue that spawned this one: #2616814: Delegate all hook invocations to ModuleHandler.
Comment #10
amateescu commented@joachim, ah, I see! Then this is a duplicate of #2928888: Add a hook_entity_preload() for modules that need to load a different revision than the default one :)
Comment #11
joachim commentedYup. I wasn't aware of that older issue.
Restoring the original title so it matches the issue summary.