Problem/Motivation

Discover if there are any problems when migrating to Drupal 9.

Proposed resolution

./vendor/bin/drupal-check modules/contrib/title_field_for_manage_display/
 3/3 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ------------------------------------------------------------------------------------------------- 
  Line   src/Plugin/Field/FieldFormatter/TitleStyleTextFieldFormatter.php                                 
 ------ ------------------------------------------------------------------------------------------------- 
  27     Usage of deprecated trait Drupal\Core\Routing\LinkGeneratorTrait in class                        
         Drupal\title_field_for_manage_display\Plugin\Field\FieldFormatter\TitleStyleTextFieldFormatter.  
  47     Call to deprecated method l() of class                                                           
         Drupal\title_field_for_manage_display\Plugin\Field\FieldFormatter\TitleStyleTextFieldFormatter.  
 ------ ------------------------------------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------------------------- 
  Line   src/Tests/TitleFieldTests.php                                                               
 ------ -------------------------------------------------------------------------------------------- 
  11     Class Drupal\title_field_for_manage_display\Tests\TitleFieldTests extends deprecated class  
         Drupal\simpletest\WebTestBase.                                                              
  38     Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase.                   
 ------ -------------------------------------------------------------------------------------------- 

 ------ -------------------------------------------------------- 
  Line   title_field_for_manage_display.module                   
 ------ -------------------------------------------------------- 
  66     Call to deprecated function entity_get_form_display().  
  69     Call to deprecated function entity_get_display().       
 ------ -------------------------------------------------------- 


 [ERROR] Found 6 errors                                                                                                 

Remaining tasks

Replace the deprecated code.

CommentFileSizeAuthor
#2 3108995-2.patch2.83 KBjohn cook

Comments

John Cook created an issue. See original summary.

john cook’s picture

Status: Active » Needs review
Issue tags: +ContributionWeekend2020
StatusFileSize
new2.83 KB

I've created an initial patch to address the deprecated code errors.

  • ccx105 committed aa6d1e3 on 8.x-1.x authored by John Cook
    Issue #3108995 by John Cook: Drupal 9 Deprecated Code Report
    
swiftsystems’s picture

Thank you for the patch. Merged in.

swiftsystems’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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