localgovdrupal / localgov_geo

Entity for storing Geographic information, addresses, and areas; extensible types and plugable backends with defaults to start.
2 stars 1 forks source link

Drupal 9.3 deprecations #45

Closed ekes closed 2 years ago

ekes commented 2 years ago
------ -------------------------------------------------------------------- 
  Line   modules/contrib/localgov_demo/localgov_demo.module                  
 ------ -------------------------------------------------------------------- 
  44     Call to deprecated function drupal_get_path():                      
         in drupal:9.3.0 and is removed from drupal:10.0.0. Use              
           \Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.  
 ------ -------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------- 
  Line   modules/contrib/localgov_directories/localgov_directories.module    
 ------ -------------------------------------------------------------------- 
  339    Call to deprecated function drupal_get_path():                      
         in drupal:9.3.0 and is removed from drupal:10.0.0. Use              
           \Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.  
 ------ -------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------ 
  Line   modules/contrib/localgov_directories/modules/localgov_directories_location/localgov_directories_location.install  
 ------ ------------------------------------------------------------------------------------------------------------------ 
  16     Call to deprecated function drupal_get_path():                                                                    
         in drupal:9.3.0 and is removed from drupal:10.0.0. Use                                                            
           \Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.                                                
  34     Call to deprecated function drupal_get_path():                                                                    
         in drupal:9.3.0 and is removed from drupal:10.0.0. Use                                                            
           \Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.                                                
 ------ ------------------------------------------------------------------------------------------------------------------ 

 ------ --------------------------------------------------------------------------------- 
  Line   modules/contrib/localgov_directories/src/Form/LocalgovDirectoriesFacetsForm.php  
 ------ --------------------------------------------------------------------------------- 
  23     Call to deprecated function render():                                            
         in drupal:9.3.0 and is removed from drupal:10.0.0. Use                           
           \Drupal\Core\Render\RendererInterface::render() instead.                       
 ------ --------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------- 
  Line   modules/contrib/localgov_geo/localgov_geo.install                    
 ------ --------------------------------------------------------------------- 
  153    Call to deprecated function drupal_set_installed_schema_version():   
         in drupal:9.3.0 and is removed from drupal:10.0.0.                   
           Use \Drupal\Core\Update\UpdateHookRegistry::setInstalledVersion()  
           instead.                                                           
  515    Call to deprecated function drupal_get_installed_schema_version():   
         in drupal:9.3.0 and is removed from drupal:10.0.0.                   
           Use \Drupal\Core\Update\UpdateHookRegistry::getInstalledVersion()  
         or                                                                   
           \Drupal\Core\Update\UpdateHookRegistry::getAllInstalledVersions()  
           instead.                                                           
  516    Call to deprecated function drupal_set_installed_schema_version():   
         in drupal:9.3.0 and is removed from drupal:10.0.0.                   
           Use \Drupal\Core\Update\UpdateHookRegistry::setInstalledVersion()  
           instead.                                                           
 ------ --------------------------------------------------------------------- 

 ------ ------------------------------------------------------------ 
  Line   modules/contrib/localgov_geo/src/Form/LocalgovGeoForm.php   
 ------ ------------------------------------------------------------ 
  23     Call to deprecated function render():                       
         in drupal:9.3.0 and is removed from drupal:10.0.0. Use      
           \Drupal\Core\Render\RendererInterface::render() instead.  
 ------ ------------------------------------------------------------ 

 ------ -------------------------------------------------------------------- 
  Line   modules/contrib/localgov_workflows/localgov_workflows.install       
 ------ -------------------------------------------------------------------- 
  32     Call to deprecated function drupal_get_path():                      
         in drupal:9.3.0 and is removed from drupal:10.0.0. Use              
           \Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.  
  103    Call to deprecated function drupal_get_path():                      
         in drupal:9.3.0 and is removed from drupal:10.0.0. Use              
           \Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.  
 ------ -------------------------------------------------------------------- 
ekes commented 2 years ago

drupal_get_path() and drupal_get_filename() have been deprecated in favor of extension listing services https://www.drupal.org/node/2940438

ekes commented 2 years ago

render() replaced with Renderer service https://www.drupal.org/node/2939099

ekes commented 2 years ago

New UpdateHookRegistry replaces functions in schema.inc https://www.drupal.org/node/2444417

ekes commented 2 years ago

https://github.com/localgovdrupal/localgov_geo/pull/46