Use new API for defining field type categories

Created on 9 January 2024, 11 months ago
Updated 23 January 2024, 11 months ago

Problem/Motivation

Drupal 10.2.0 introduced a new API for defining field type categories . Passing @Translation() to category is now deprecated. Let's update this.

Steps to reproduce

  1. Run tests with PHPUnit and deprecations enabled.
  2. See deprecation warnings.
  11x: 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/3364271
    6x in ExIconsSelectWidgetTest::testIconTitle from Drupal\Tests\ex_icons\Functional
    2x in ExIconsSelectionTest::testExIconSelection from Drupal\Tests\ex_icons\Functional
    1x in ExIconDefaultFormatterTest::testExIconDefaultFormatter from Drupal\Tests\ex_icons\Kernel
    1x in ExIconItemTest::testExIconItem from Drupal\Tests\ex_icons\Kernel
    1x in ExIconLinkFormatterTest::testExIconLinkFormatter from Drupal\Tests\ex_icons\Kernel

Proposed resolution

Use the new API for defining field type categories.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom Wongjn

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024