webform_civicrm icon indicating copy to clipboard operation
webform_civicrm copied to clipboard

D11 support

Open jackrabbithanna opened this issue 8 months ago • 2 comments

Overview

Changes to support Drupal 11

Technical Details

Drupal deprecation code analysis provides this output for deprecations needing to be changed in D11

 ------ --------------------------------------------------------- 
  Line   src/WebformCivicrmBase.php                               
 ------ --------------------------------------------------------- 
  825    Call to deprecated function file_icon_class():           
         in drupal:10.3.0 and is removed from drupal:11.0.0. Use  
           \Drupal\file\IconMimeTypes::getIconClass() instead.    
 ------ --------------------------------------------------------- 

Comments

Drupal change record: https://www.drupal.org/node/3411269

To support D9 and D11, we have to check if function exists, and then use full object path. When D9 support is dropped, should add a "use" statement and remove the conditional

jackrabbithanna avatar May 30 '24 22:05 jackrabbithanna