Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It's a simple wrapper around a service. Use the service instead.
Comment | File | Size | Author |
---|---|---|---|
#15 | deprecate-file-usage-2104229-15.patch | 20.42 KB | claudiu.cristea |
#11 | deprecate-file-usage-2104229-11.patch | 20.38 KB | claudiu.cristea |
#10 | interdiff.txt | 670 bytes | claudiu.cristea |
#10 | deprecate-file-usage-2104229-10.patch | 21.93 KB | claudiu.cristea |
#4 | deprecate-file-usage-2104229-4.patch | 21.81 KB | claudiu.cristea |
Comments
Comment #1
claudiu.cristeaPatch.
Comment #2
claudiu.cristeaAh, missed the patch :)
Comment #3
claudiu.cristeaPostponing this to be sure that I don't have to rework this if it goes in before #2073033: Optimize file usage updates in file/image fields.
Comment #4
claudiu.cristea#2073033: Optimize file usage updates in file/image fields is in.
Comment #5
claudiu.cristeaReviewers? :)
Comment #6
claudiu.cristea#4: deprecate-file-usage-2104229-4.patch queued for re-testing.
Comment #7
dawehnerWe do know use \Drupal:: in tests, but I don't think this is important if we don't have a dedicated method on the Drupal class for file usage.
Comment #8
jibranThank you. I have verified and no usage left of
file_usage()
other then function definition. Patch is green so RTBC.Comment #9
alexpottDo we really want to remove the @see. These seem helpful to me. I would change these to
@see \Drupal\file\FileUsage\FileUsageBase::delete()
Comment #10
claudiu.cristeaOh! OK, then.
Comment #11
claudiu.cristeaRerolled after #2134951: Remove upgrade path tests.
Comment #12
jibranBack to RTBC.
Comment #13
webchickCommitted and pushed to 8.x. Thanks!
Comment #14
webchickSorry, this conflicted with #2131851: Form errors must be specific to a form and not a global which was a critical issue so I ended up reverting this so that one could make it in. So this will need a small re-roll.
Comment #15
claudiu.cristeaRerolled.
Comment #16
jibranBack to RTBC
Comment #17
webchickOk, re-committed to 8.x. :) Thanks.