Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Dec 2015 at 20:26 UTC
Updated:
1 Mar 2016 at 11:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mac_weber commentedComment #4
mac_weber commentedFixed class aliasing
Comment #5
swentel commentedDoesn't apply anymore (probably after #2604220: PHP notice for single value image field configured with a default image (no image present) and a hidden label), should be easy to fix.
Comment #6
swentel commentedComment #7
mac_weber commentedComment #8
xanoTests must use
$this->container->get('entity_type.manager')->getStorage('field_config')->create(). This type of dependency injection is not possible in procedural code, so that's why we useFieldConfig::create()there.Comment #9
chx commentedErm, nope. That's not what the @deprecated section of entity_create() says. If you disagree with that documentation and the decision behind it , bring it up with the entity maintainers but not in this issue or family of issues.
Comment #10
naveenvalechaThis patch needs reroll due to conflicts with #2641596: Replace deprecated usage of entity_create('node') with a direct call to Node::create()
Comment #11
legovaerComment #13
heykarthikwithuComment #14
heykarthikwithuAs per #10.
Comment #15
heykarthikwithuComment #16
legovaerPatch applies, successfully replaces entity_create('field_config').
RTBC.
Comment #17
catchCommitted/pushed to 8.1.x, thanks!