------ -------------------------------------------------------------------- 
  Line   src/Plugin/Field/FieldWidget/ParagraphsClassicAsymmetricWidget.php  
 ------ -------------------------------------------------------------------- 
  522    Call to deprecated function entity_view().                          
 ------ -------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------------------------------------- 
  Line   tests/src/Functional/ParagraphsAsymmetricTranslationTest.php                                            
 ------ -------------------------------------------------------------------------------------------------------- 
  17     Usage of deprecated trait Drupal\field_ui\Tests\FieldUiTestTrait in class                               
         Drupal\Tests\paragraphs_asymmetric_translation_widgets\Functional\ParagraphsAsymmetricTranslationTest.  
 ------ -------------------------------------------------------------------------------------------------------- 
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sleitner created an issue. See original summary.

sleitner’s picture

Status: Active » Needs review
FileSize
1.72 KB
sleitner’s picture

taras.suliatitskiy’s picture

As per Drupal 9 compatibility it is better not to provide a drupal/core version requirement in composer.json, because Drupal's composer facade will generate the appropriate metadata based on the info.yml file. Thus, I update the #3 patch to get rid of drupal/core requirement.
Also, Upgrade status say's:

The drupal/core requirement is not Drupal 9 compatible. Either remove it or update it to be compatible with Drupal 9.
taras.suliatitskiy’s picture

Grayle’s picture

I copied the way paragraphs updated their widget for D9

  • Grayle committed 07b2bef on 8.x-1.x
    Issue #3060992 by sleitner, taras.suliatitskiy, Grayle: Drupal 9...
Grayle’s picture

Status: Needs review » Fixed
sleitner’s picture

Status: Fixed » Needs review
FileSize
1.79 KB

Sorry, but drupalcheck still shows the issues: entity_view and test traits

------ -------------------------------------------------------------------- 
  Line   src/Plugin/Field/FieldWidget/ParagraphsClassicAsymmetricWidget.php  
 ------ -------------------------------------------------------------------- 
  526    Call to deprecated function entity_view():                          
         in drupal:8.0.0 and is removed from drupal:9.0.0.                   
         Use the entity view builder's view() method for creating a render   
         array:                                                              
 ------ -------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------- 
  Line   tests/src/Functional/ParagraphsAsymmetricTranslationTest.php          
 ------ ---------------------------------------------------------------------- 
         Reflection error:                                                     
         Drupal\paragraphs\Tests\Classic\ParagraphsCoreVersionUiTestTrait not  
         found.                                                                
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols    
  15     Class                                                                 
         Drupal\paragraphs\Tests\Classic\ParagraphsCoreVersionUiTestTrait not  
         found.                                                                
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols    
 ------ ---------------------------------------------------------------------- 
  17     Usage of deprecated trait Drupal\field_ui\Tests\FieldUiTestTrait in    
         class                                                                  
         Drupal\Tests\paragraphs_asymmetric_translation_widgets\Functional\Par  
         agraphsAsymmetricTranslationTest:                                      
         in drupal:8.7.0 and is removed from drupal:9.0.0.                      
         Use \Drupal\Tests\field_ui\Traits\FieldUiTestTrait. See                
         https://www.drupal.org/node/3001664                                    
 ------ ----------------------------------------------------------------------- 

  • Grayle committed 4824e2a on 8.x-1.x authored by sleitner
    Issue #3060992 by sleitner: Drupal 9 Deprecated Code Report
    
Grayle’s picture

Status: Needs review » Fixed
FileSize
9.24 KB

Woops, my bad

ok

Status: Fixed » Closed (fixed)

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