localgovdrupal / localgov_workflows

Default editorial workflow for LocalGov Drupal content.
GNU General Public License v2.0
0 stars 1 forks source link

Deprecated function call drupal_get_path #27

Closed andybroomfield closed 2 years ago

andybroomfield commented 2 years ago
 ------ -------------------------------------------------------------------- 
  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.  
 ------ -------------------------------------------------------------------- 

see https://www.drupal.org/node/2940438 Replace drupal_get_path() with \Drupal::service('extension.path.resolver')->getPath('module', 'localgov_workflows')