Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2017 at 00:54 UTC
Updated:
26 Mar 2017 at 10:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
amateescu commentedSomething like this.
Comment #3
timmillwoodWhat if a contrib module is using
setQueryable()? can we just remove it?Comment #4
amateescu commentedThat's a good question.. we should probably deprecate instead of removing it.
Comment #5
shadcn commentedDeprecated as per #4.
Comment #6
timmillwoodLooks good to me.
@amateescu, it'd be good if you could +1 #5 too.
Comment #7
alexpottYep this does not totally extraneous. We're in the process of putting together a policy on how to deprecate things. The basic bit is that we should add an
@trigger_error.One of the things that is important is the trigger_error links to the change record for the deprecation - which this issue is missing.
Here's the current text for deprecating methods:
Add
@trigger_error('...', E_USER_DEPRECATED)at the top of the method. Add@deprecatedto the docblock for the method. For example:Comment #8
shadcn commentedThanks @alexpott. Here's a first draft: https://www.drupal.org/node/2856563
Comment #9
timmillwoodThanks @arshadcn, back to RTBC.
Comment #10
amateescu commentedShouldn't we have the same message here? 8.4.0 vs. 8.4.x and the same for 9.0.0 and 9.0.x :)
Comment #11
xjmYep, they should end in .0 for clarity. 8.4.0 is a specific tag/tarball on a specific date. 8.4.x is a year's worth of ever-changing code in development and then stable. :)
For reference, the policy is live here now: https://www.drupal.org/core/deprecation
Comment #12
himanshu-dixit commentedHere is the new patch which updates the documentation
Comment #13
timmillwoodComment #15
catchCommitted/pushed to 8.4.x, thanks!
Comment #17
himanshu-dixit commentedAttributing the contribution to GSoC.