Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2015 at 21:28 UTC
Updated:
6 Jan 2016 at 01:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tvlooy commentedComment #3
tvlooy commentedps: if this is confirmed as a bug. Then this code is probably not under tests. I must admit that I'm not sure what callback_batch_operation exactly does, but if nobody is using it (nobody reported any problems before) maybe we should just delete the code instead of fixing it.
Comment #4
tvlooy commentedComment #5
jeroentComment #6
tvlooy commentedThanks Jeroen. So it's example code, that explains a lot :-)
Nevertheless the example is wrong. I just found out that Drupal::entityManager() is deprecated so I adjusted the patch.
Comment #7
borisson_@tvlooy: *.api.php files are examples on how to use the api. Those files are not executed or tested.
The example was wrong and your patch fixes it.
Comment #8
jhodgdon+1 Thanks! @borisson, thanks for the review too.
Comment #9
alexpottCommitted d8b27e3 and pushed to 8.0.x and 8.1.x. Thanks!