Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
taxonomy.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2017 at 08:43 UTC
Updated:
22 Feb 2017 at 14:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
claudiu.cristeaPatch
Comment #3
hchonovLet's use __METHOD__ instead and full version strings.
What about the following?
Comment #4
claudiu.cristeaThat's OK, too :)
Comment #5
hchonovSorry, this should be 9.0.0 as well :)
Also looking at the most cases in core the "Use.." sentence is on the next line. Also probably instead of "Use TermInterface::bundle() instead." it is probably better to put "Use self::bundle() instead."
Comment #6
claudiu.cristeaNo, it should not -- that is incorrect. You remove the method either "in 9.0.x" or "before 9.0.0". You just cannot remove the method exactly in 9.0.0. Theoretically you could but that doesn't happen. The deprecated methods are removed during 9.0.x development interval. Let's go with "before" version.
"Most cases" doesn't mean "correct" :) Quoting from https://www.drupal.org/docs/develop/coding-standards/api-documentation-a...
Note the "(...) wrap as close to 80 characters as possible" part.
Well, we are here on the interface. We should refer to methods belonging to interface. And ::bundle() belongs to this interface even is inherited. I would not change that.
Comment #8
claudiu.cristeaConsider this patch for #6. That was wrong.
Comment #9
hchonovOk, I am fine with it and I think that it looks good now.
Comment #11
catchCommitted/pushed to 8.4.x, thanks!
Comment #12
claudiu.cristeaOh, this was so fast :)
Comment #14
berdirFor the record, this method was added on purpose, just like Node::getType() and was requested in the initial entity field api conversions by @webchick and others.