Fix deprecation notices

Created on 21 March 2024, 9 months ago

Problem/Motivation

The tests still throw a few deprecation notices, which need to get fixed:

Unsilenced deprecation notices (6)

  6x: Creation of dynamic property Drupal\block_field\Plugin\Field\FieldFormatter\BlockFieldLabelFormatter::$currentUser is deprecated
    6x in GenericDrowlParagraphsBsBlockContentTest::testModuleGenericIssues from Drupal\Tests\drowl_paragraphs_bs_type_block_content\Functional

Remaining self deprecation notices (517)

  517x: Using a translatable string as a category for field type is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3375748
    33x in GenericDrowlParagraphsBsImageTest::testModuleGenericIssues from Drupal\Tests\drowl_paragraphs_bs_type_image\Functional
    33x in GenericDrowlParagraphsBsSlideshowTest::testModuleGenericIssues from Drupal\Tests\drowl_paragraphs_bs_type_slideshow\Functional
    31x in GenericDrowlParagraphsBsRestrictedAccessTest::testModuleGenericIssues from Drupal\Tests\drowl_paragraphs_bs_type_layout_restricted_access\Functional
    30x in GenericDrowlParagraphsBsBlockContentTest::testModuleGenericIssues from Drupal\Tests\drowl_paragraphs_bs_type_block_content\Functional
    25x in GenericDrowlParagraphsBsViewTest::testModuleGenericIssues from Drupal\Tests\drowl_paragraphs_bs_type_view\Functional
    ...

Other deprecation notices (1)

  1x: system_time_zones() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. This function is no longer used in Drupal core. Use \Drupal\Core\Datetime\TimeZoneFormHelper::getOptionsList(), \Drupal\Core\Datetime\TimeZoneFormHelper::getOptionsListByRegion() or \DateTimeZone::listIdentifiers() instead. See https://www.drupal.org/node/3023528
    1x in GenericDrowlParagraphsBsWebformTest::testModuleGenericIssues from Drupal\Tests\drowl_paragraphs_bs_type_webform\Functional

Steps to reproduce

Proposed resolution

Fix the deprecation notices.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇩🇪Germany Grevil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Grevil
  • Status changed to Closed: works as designed 9 months ago
  • 🇩🇪Germany Grevil

    Ok, nvm these deprecation notices are actually unrelated to our module!

Production build 0.71.5 2024