Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jul 2015 at 15:18 UTC
Updated:
3 Aug 2023 at 04:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pguillard commentedI'm not sure I understood.
Just a guess then...
Comment #2
mile23Still applies.
Comment #3
cilefen commentedThe second line must be indented and end with a period. See UrlGeneratorInterface for examples in core.
Comment #4
mile23Coding standards for API docs: https://www.drupal.org/coding-standards/docs#deprecated
Comment #5
deepakaryan1988Lets hope this is correct.
Comment #6
deepakaryan1988Comment #7
ankur7213 commentedi have attached patch file.
Comment #8
meramo commentedI think it still needs work, as
Comment #9
deepakaryan1988@meramo I have removed the @todo statement. @ankur7213 Why did you re-rolled this patch?
Please let me know.
Comment #10
sdstyles commentedMarked as deprecated EntityHandlerBase and corrected namespace to EntityHandlerInterface.
Comment #11
tim.plunkett8.0.x, 9.0.0
Comment #12
sdstyles commentedFixed.
Comment #13
deepakaryan1988@tim.plunkett @Mile23 @cilefen I think #12 works!
What do you say?
Comment #14
meramo commentedApplies and looks good. Why not to rtbc
Comment #15
alexpottNormally a deprecation notice tells a user what to do instead. Which I think in this case is just inject the module handler dependency using
EntityHandlerInterface::createInstance().Comment #16
sdstyles commentedChanged.
Comment #17
meramo commentedI think it's good and complies with https://www.drupal.org/node/1876842 and https://www.drupal.org/node/1354#deprecated
Comment #18
mile23I think it should be more specific and say something like: "Implement the container injection pattern of \Drupal\Core\Entity\EntityHandlerInterface::createInstance() to obtain the module handler service for your class."
Comment #19
pguillard commented#18 applied
Comment #20
mile23Diggit. Thanks. :-)
Comment #21
alexpottCommitted 5d3f318 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.
Comment #24
ankur7213 commented