Support from Acquia helps fund testing for Drupal Acquia logo

Comments

claudiu.cristea’s picture

Priority: Normal » Minor
Status: Active » Needs review
Issue tags: +API clean-up

Patch.

claudiu.cristea’s picture

Ah, missed the patch :)

claudiu.cristea’s picture

Status: Needs review » Postponed

Postponing 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.

claudiu.cristea’s picture

claudiu.cristea’s picture

Reviewers? :)

claudiu.cristea’s picture

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

We 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.

jibran’s picture

Thank you. I have verified and no usage left of file_usage() other then function definition. Patch is green so RTBC.

alexpott’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs work
+++ b/core/includes/file.inc
@@ -916,7 +916,6 @@ function file_create_filename($basename, $directory) {
- * @see file_usage()->listUsage()

@@ -933,7 +932,6 @@ function file_delete($fid) {
- * @see file_usage()->listUsage()

Do we really want to remove the @see. These seem helpful to me. I would change these to @see \Drupal\file\FileUsage\FileUsageBase::delete()

claudiu.cristea’s picture

Status: Needs work » Needs review
FileSize
21.93 KB
670 bytes

Oh! OK, then.

claudiu.cristea’s picture

jibran’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

webchick’s picture

Status: Fixed » Needs work

Sorry, 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.

claudiu.cristea’s picture

Status: Needs work » Needs review
FileSize
20.42 KB

Rerolled.

jibran’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Ok, re-committed to 8.x. :) Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.