php drupal-check.phar modules/contrib/background_image/
 30/30 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ---------------------------------------------------------------- 
  Line   src/BackgroundImageManager.php                                  
 ------ ---------------------------------------------------------------- 
  201    Call to deprecated function file_unmanaged_delete_recursive().  
 ------ ---------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------- 
  Line   src/Controller/BackgroundImageCssController.php                                
 ------ ------------------------------------------------------------------------------- 
  122    Call to deprecated function drupal_dirname().                                  
  123    Call to deprecated function file_prepare_directory().                          
  198    Call to deprecated method substr() of class Drupal\Component\Utility\Unicode.  
  237    Call to deprecated function file_prepare_directory().                          
  238    Call to deprecated function file_unmanaged_save_data().                        
  243    Call to deprecated function file_unmanaged_save_data().                        
  301    Call to deprecated function file_stream_wrapper_valid_scheme().                
 ------ ------------------------------------------------------------------------------- 

 ------ ------------------------------------------------ 
  Line   src/Entity/BackgroundImage.php                  
 ------ ------------------------------------------------ 
  631    Call to deprecated method l() of class Drupal.  
 ------ ------------------------------------------------ 

 ------ --------------------------------------------------- 
  Line   src/Form/BackgroundImageForm.php                   
 ------ --------------------------------------------------- 
  799    Call to deprecated function drupal_set_message().  
  802    Call to deprecated function drupal_set_message().  
  859    Call to deprecated function drupal_set_message().  
  864    Call to deprecated function drupal_set_message().  
 ------ --------------------------------------------------- 

                                                                                                                        
 [ERROR] Found 13 errors  

Comments

Sergiu Stici created an issue. See original summary.

sergiu stici’s picture

Status: Active » Needs review
StatusFileSize
new8.71 KB

Here's the patch, please review.

basvredeling’s picture

StatusFileSize
new9.46 KB
new2.81 KB

#2 looks mostly good. I've added a few missing deprecation fixes and changed the order of the use statements to be alphabetical.

markhalliwell’s picture

Version: 8.x-1.x-dev » 2.x-dev
Assigned: Unassigned » markhalliwell
Status: Needs review » Needs work
markhalliwell’s picture

Title: Deprecated Code Report » [background_image] Drupal 9
markhalliwell’s picture

Assigned: markhalliwell » Unassigned
Status: Needs work » Fixed
StatusFileSize
new16.48 KB

  • markcarver committed d739056 on 2.x
    Issue #3092133 by markcarver, basvredeling, Sergiu Stici: [...

Status: Fixed » Closed (fixed)

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