Problem/Motivation

drupal-check results on commit hash:
source : [git] https://git.drupal.org/project/asset_injector 6e0ac11d439d13fd0cfafe96c2b2ee347109b1d7
source : http://cgit.drupalcode.org/asset_injector


 ------ ---------------------------------------------------- 
  Line   src/Entity/AssetInjectorBase.php                    
 ------ ---------------------------------------------------- 
  260    Access to deprecated property $pages of class       
         Drupalsset_injector\Entity\AssetInjectorBase.     
  263    Access to deprecated property $pages of class       
         Drupalsset_injector\Entity\AssetInjectorBase.     
  264    Access to deprecated property $visibility of class  
         Drupalsset_injector\Entity\AssetInjectorBase.     
  268    Access to deprecated property $nodeType of class    
         Drupalsset_injector\Entity\AssetInjectorBase.     
  271    Access to deprecated property $nodeType of class    
         Drupalsset_injector\Entity\AssetInjectorBase.     
  271    Access to deprecated property $nodeType of class    
         Drupalsset_injector\Entity\AssetInjectorBase.     
  271    Access to deprecated property $nodeType of class    
         Drupalsset_injector\Entity\AssetInjectorBase.     
  271    Access to deprecated property $nodeType of class    
         Drupalsset_injector\Entity\AssetInjectorBase.     
  277    Access to deprecated property $themes of class      
         Drupalsset_injector\Entity\AssetInjectorBase.     
  280    Access to deprecated property $themes of class      
         Drupalsset_injector\Entity\AssetInjectorBase.     
 ------ ---------------------------------------------------- 

 [ERROR] Found 10 errors                                                    

 

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

mcdwayne created an issue. See original summary.

pookmish’s picture

Luckily these are only internal deprecation. In the future I will release a 3.0 version of asset injector with those properties removed to be in line with Drupal 9. But there is no need to make any changes at this time.

pookmish’s picture

Status: Active » Postponed
pookmish’s picture

Not including the above localized deprecated properties, the following have recently been deprecated as of today.

------ -------------------------------------------------------------------------- 
  Line   asset_injector.install                                                    
 ------ -------------------------------------------------------------------------- 
  14     Call to deprecated function file_stream_wrapper_uri_normalize():          
         in drupal:8.8.0 and will be removed from drupal:9.0.0. Use                
         \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::normalizeUri()  
         instead.                                                                  
  15     Call to deprecated function file_prepare_directory():                     
         in Drupal 8.7.0, will be removed before Drupal 9.0.0.                     
         Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().            
  30     Call to deprecated function file_stream_wrapper_uri_normalize():          
         in drupal:8.8.0 and will be removed from drupal:9.0.0. Use                
         \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::normalizeUri()  
         instead.                                                                  
  31     Call to deprecated function file_unmanaged_delete_recursive():            
         in Drupal 8.7.0, will be removed before Drupal 9.0.0.                     
         Use \Drupal\Core\File\FileSystemInterface::deleteRecursive().             
 ------ -------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------- 
  Line   src/AssetFileStorage.php                                        
 ------ ---------------------------------------------------------------- 
  54     Call to deprecated function file_prepare_directory():           
         in Drupal 8.7.0, will be removed before Drupal 9.0.0.           
         Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().  
  55     Call to deprecated function file_unmanaged_save_data():         
         in Drupal 8.7.0, will be removed before Drupal 9.0.0.           
         Use \Drupal\Core\File\FileSystemInterface::saveData().          
  70     Call to deprecated function file_unmanaged_delete():            
         in Drupal 8.7.0, will be removed before Drupal 9.0.0.           
         Use \Drupal\Core\File\FileSystemInterface::delete().            
  115    Call to deprecated function file_unmanaged_delete_recursive():  
         in Drupal 8.7.0, will be removed before Drupal 9.0.0.           
         Use \Drupal\Core\File\FileSystemInterface::deleteRecursive().   
 ------ ---------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   src/Form/AssetInjectorJsForm.php                              
 ------ -------------------------------------------------------------- 
  87     Call to deprecated function system_list():                    
         in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use  
         \Drupal::service('theme_handler')->listInfo() instead.        
 ------ --------------------------------------------------------------

  • pookmish committed 00097b1 on 8.x-2.x
    Issue #3042772: Drupal 9 Deprecated Code Report
    
pookmish’s picture

Status: Postponed » Fixed

Status: Fixed » Closed (fixed)

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