web/modules/contrib/blocktabs/blocktabs.libraries.yml 0 The 'blocktabs' library is depending on a deprecated library. The "core/jquery.ui.tabs" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3067969

web/modules/contrib/blocktabs/blocktabs.libraries.yml 0 The 'accordion' library is depending on a deprecated library. The "core/jquery.ui.accordion" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3067969

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mo_farhaz created an issue. See original summary.

mo_farhaz’s picture

Please review it

mo_farhaz’s picture

Assigned: mo_farhaz » Unassigned
Status: Active » Needs review
e.bogatyrev’s picture

Title: Deprecated code report » Drupal 9 compatibility
Issue tags: +Drupal 9 compatibility, +epam-contrib, +Drupal 9 porting weekend

Hi there,

I applied patch #2 and run the drupal-check and got the following issues.

drupal-check blocktabs/
24/24 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ ----------------------------------------------------------------------
Line src/Form/BlocktabsAddForm.php
------ ----------------------------------------------------------------------
17 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------

------ ----------------------------------------------------------------------
Line src/Form/BlocktabsEditForm.php
------ ----------------------------------------------------------------------
222 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
245 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------

------ ----------------------------------------------------------------------------------
Line src/Form/BlocktabsFormBase.php
------ ----------------------------------------------------------------------------------
111 Call to deprecated method urlInfo() of class Drupal\Core\Entity\EntityInterface:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Entity\EntityInterface::toUrl() instead.
------ ----------------------------------------------------------------------------------

------ ----------------------------------------------------------------------------------
Line src/Form/TabDeleteForm.php
------ ----------------------------------------------------------------------------------
46 Call to deprecated method urlInfo() of class Drupal\Core\Entity\EntityInterface:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Entity\EntityInterface::toUrl() instead.
71 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
72 Call to deprecated method urlInfo() of class Drupal\Core\Entity\EntityInterface:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Entity\EntityInterface::toUrl() instead.
------ ----------------------------------------------------------------------------------

------ ----------------------------------------------------------------------------------
Line src/Form/TabFormBase.php
------ ----------------------------------------------------------------------------------
100 Call to deprecated method urlInfo() of class Drupal\Core\Entity\EntityInterface:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Entity\EntityInterface::toUrl() instead.
153 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
154 Call to deprecated method urlInfo() of class Drupal\Core\Entity\EntityInterface:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Entity\EntityInterface::toUrl() instead.
------ ----------------------------------------------------------------------------------

------ -------------------------------------------------------------------------
Line src/Plugin/Tab/BlockContentTab.php
------ -------------------------------------------------------------------------
54 Call to deprecated function db_query():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,
get a database connection injected into your service from the container
and call query() on it. For example,
------ -------------------------------------------------------------------------

------ -----------------------------------------------------------
Line src/Plugin/Tab/ViewsTab.php
------ -----------------------------------------------------------
111 Call to deprecated function drupal_render():
in drupal:8.0.0 and is removed from drupal:9.0.0. Use the
------ -----------------------------------------------------------

------ ---------------------------------------------------------------------------------------------------------------------------
Line src/TabInterface.php
------ ---------------------------------------------------------------------------------------------------------------------------
20 Interface Drupal\blocktabs\TabInterface extends deprecated interface Drupal\Component\Plugin\ConfigurablePluginInterface:
Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated
in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement
ConfigurableInterface and/or DependentPluginInterface directly as needed. If
you implement ConfigurableInterface you may choose to implement
ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility,
however this must be removed prior to Drupal 9.
------ ---------------------------------------------------------------------------------------------------------------------------

[ERROR] Found 13 errors

e.bogatyrev’s picture

I leave the changes by @mo_farhaz and fixed the issues mentioned above and create another patch.
Now the status of the deprecations is following

drupal-check blocktabs/
24/24 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

[OK] No errors

Please review and test.

Best regards,
Egor

bibliophileaxe’s picture

Status: Needs review » Needs work

Thanks for the patch. Patch applies cleanly and there are no errors for rector and drupal check.

Please update the core_version_requirement in info.yml as well.

modules/custom/blocktabs/blocktabs.info.yml Add core_version_requirement: ^8 || ^9 to modules/custom/blocktabs/blocktabs.info.yml to designate that the module is compatible with Drupal 9. See https://drupal.org/node/3070687.

e.bogatyrev’s picture

Status: Needs work » Needs review
FileSize
7.04 KB

Hi @akanksha-hp,

Thanks for the notice. Updated the patch.

Best regards,
Egor

driverok’s picture

Status: Needs review » Reviewed & tested by the community

I've checked #7.

Drupal-check, rector, upgrade-status report no issues.

Sanity-check on drupal 9.0.0-rc1 is passed.

So RTBCing.

g089h515r806’s picture

Status: Reviewed & tested by the community » Fixed

committed.

Status: Fixed » Closed (fixed)

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