There are deprecated code used in module file which will be removed in future release.

$ drupal-check modules/perfmon/
 5/5 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ------------------------------------------------------------------------- 
  Line   perfmon.module                                                           
 ------ ------------------------------------------------------------------------- 
  229    Call to deprecated function db_insert():                                 
         as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get        
         a database connection injected into your service from the container and  
         call insert() on it. For example,                                        
  247    Call to deprecated function db_truncate():                               
         as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get        
         a database connection injected into your service from the container and  
         call truncate() on it. For example,                                      
  254    Call to deprecated function db_select():                                 
         as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get        
         a database connection injected into your service from the container and  
         call select() on it. For example,                                        
  272    Call to deprecated function db_truncate():                               
         as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get        
         a database connection injected into your service from the container and  
         call truncate() on it. For example,                                      
  290    Call to deprecated function db_truncate():                               
         as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get        
         a database connection injected into your service from the container and  
         call truncate() on it. For example,                                      
  297    Call to deprecated function db_update():                                 
         as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get        
         a database connection injected into your service from the container and  
         call update() on it. For example,                                        
  329    Call to deprecated function db_query():                                  
         as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get        
         a database connection injected into your service from the container and  
         call query() on it. For example,                                         
  339    Call to deprecated function db_query():                                  
         as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get        
         a database connection injected into your service from the container and  
         call query() on it. For example,                                         
 ------ ------------------------------------------------------------------------- 

                                                                                                                        
 [ERROR] Found 8 errors                                                                                                 
                                                                                                                        

Comments

sarathkm created an issue. See original summary.

sarathkm’s picture

Status: Active » Needs review
StatusFileSize
new2.84 KB

Patch includes changes to module file.

sarathkm’s picture

Assigned: sarathkm » Unassigned

Changing assigned to unassigned

rudranil29’s picture

Assigned: Unassigned » rudranil29
rudranil29’s picture

Status: Needs review » Reviewed & tested by the community

looks good, tested on my system working fine,
thanks for the patch, keep contributing...

  • armrus committed f9fef38 on 8.x-1.x authored by sarathkm
    Issue #3068669 by sarathkm: Deprecated functions being used in module...
armrus’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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