Problem/Motivation

drupal-check results

------ --------------------------------------------------------------------
Line   modules/ctools_block/tests/src/Functional/EntityFieldBlockTest.php
------ --------------------------------------------------------------------
48     Call to deprecated function file_unmanaged_copy():
in drupal:8.7.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\File\FileSystemInterface::copy().
------ --------------------------------------------------------------------

------ ----------------------------------------------------------------
Line   modules/ctools_entity_mask/tests/src/Kernel/EntityMaskTest.php
------ ----------------------------------------------------------------
65     Call to deprecated function entity_get_display():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
EntityDisplayRepositoryInterface::getViewDisplay() instead.
89     Call to deprecated function entity_get_form_display():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
EntityDisplayRepositoryInterface::getFormDisplay() instead.
------ ----------------------------------------------------------------

------ --------------------------------------------------------------------------------------------------------------------------
Line   modules/ctools_views/src/Tests/CToolsViewsBasicViewBlockTest.php
------ --------------------------------------------------------------------------------------------------------------------------
16     Class Drupal\ctools_views\Tests\CToolsViewsBasicViewBlockTest extends deprecated class Drupal\views_ui\Tests\UITestBase:
in drupal:8.4.0 and is removed from drupal:9.0.0.
Use \Drupal\Tests\views_ui\Functional\UITestBase.
45     Call to method setUp() of deprecated class Drupal\views_ui\Tests\UITestBase:
in drupal:8.4.0 and is removed from drupal:9.0.0.
Use \Drupal\Tests\views_ui\Functional\UITestBase.
------ --------------------------------------------------------------------------------------------------------------------------

------ ---------------------------------------------------------------------------------------------------------------------------------------------------
Line   src/Tests/Wizard/CToolsWizardTest.php
------ ---------------------------------------------------------------------------------------------------------------------------------------------------
Class Drupal\Tests\ctools\Functional\CToolsWizardTest was not found while trying to analyse it - autoloading is probably not configured properly.
------ ---------------------------------------------------------------------------------------------------------------------------------------------------

------ ------------------------------------------------------------------------------------------------
Line   src/Wizard/EntityFormWizardBase.php
------ ------------------------------------------------------------------------------------------------
101    Call to deprecated method getLowercaseLabel() of class Drupal\Core\Entity\EntityTypeInterface:
in drupal:8.8.0 and is removed from drupal:9.0.0.
Instead, you should call getSingularLabel().
See https://www.drupal.org/node/3075567
------ ------------------------------------------------------------------------------------------------

Comments

RoshniPatel.addweb created an issue. See original summary.

damienmckenna’s picture

Title: Drupal 9 Deprecated Code Report » Drupal 9 Deprecated Code Report for CTools
Version: 8.x-3.2 » 8.x-3.x-dev
Deepthi kumari’s picture

Assigned: Unassigned » Deepthi kumari
jeroent’s picture

Assigned: Deepthi kumari » Unassigned

I tried the latest dev-version of ctools and most of the deprecations seems to be fixed:

drupal-check web/modules/contrib/ctools                                                                                                                                                                              6s 15:42:33
 110/110 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ --------------------------------------------------------------------------------------------------------------- 
  Line   src/Event/BlockVariantEvent.php                                                                                
 ------ --------------------------------------------------------------------------------------------------------------- 
  9      Class Drupal\ctools\Event\BlockVariantEvent extends deprecated class Symfony\Component\EventDispatcher\Event:  
         since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead                                       
 ------ --------------------------------------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------------------------------------------- 
  Line   src/Event/WizardEvent.php                                                                                
 ------ --------------------------------------------------------------------------------------------------------- 
  11     Class Drupal\ctools\Event\WizardEvent extends deprecated class Symfony\Component\EventDispatcher\Event:  
         since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead                                 
 ------ --------------------------------------------------------------------------------------------------------- 

                                                                                                                        
 [ERROR] Found 2 errors                                                                                                 
                                                                                                                        


jeroent’s picture

samvada_jain_m’s picture

Assigned: Unassigned » samvada_jain_m
samvada_jain_m’s picture

Assigned: samvada_jain_m » Unassigned
jkswoods’s picture

Status: Active » Fixed

All deprecation notices have been fixed on the dev branch (8.x-3.x-dev).

Status: Fixed » Closed (fixed)

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

mpp’s picture

Thanks! Any chance this could be released in a new version?

ressa’s picture

Neither "Drupal 9" nor "D9" is mentioned on the CTools module page ... Since this is the most installed module, it would be great to shortly outline if it is compatible with Drupal 9, and if there are plans for a dedicated Drupal 9 release at some point. Something like this could be a start:

CTools for Drupal 9
8.x-3.4 is compatible with Drupal 9.

geerlingguy’s picture

@ressa - I'm in agreement. I have the module installed on my Drupal 8 site, but have no clue why (I guess I could dig through dependencies or something...). Is it necessary on Drupal 9? If so, are there any plans for a new release or adding a mention of Drupal 9 anywhere on the project page? I just got a notice that Drupal 8 is EOL in November—something should definitely be done by then!

ressa’s picture

@geerlingguy: I just had a quick look, and the module Uninstall page (admin/modules/uninstall) says that Chaos Tools is required by Pathauto. Since most sites use Pathauto, thereby requiring Chaos Tools, adding some text about Drupal 9 on the project page would be nice.

The three most popular modules are Chaos Tools, Token and Pathauto, They basically go hand-in-hand, since Pathauto besides Chaos Tools also requires Token:

1 Drupal core:      983,146
2 Chaos Tool Suite: 771,073
3 Token:            729,683
4 Pathauto:         633,270

(https://www.drupal.org/project/usage June 20, 2021)

Perhaps we could mention on the project page that Chaos Tools is required by Pathauto, to most efficiently inform us users about this, with something like this?

Chaos Tools for Drupal 9

Chaos Tools is compatible with Drupal 9. The very popular module Pathauto requires Chaos Tools to be installed.