Using a translatable string as a category for field type is deprecated in drupal:10.2 (Commerce)

Created on 7 January 2024, 12 months ago
Updated 1 April 2024, 9 months ago

When using the Commerce module in phpunit testing of other modules, at core 10.2 we get a deprecation error

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

The change record is actually https://www.drupal.org/node/3375748
(not https://www.drupal.org/node/3364271 as in the message, which gives a 404)

My module did not have the field definitions so I tracked it down to Commerce (and also Address and Plugin)

The problem line looks to be src/Plugin/Field/FieldType/PluginItem.php#L17

📌 Task
Status

Fixed

Version

2.0

Component

Tests

Created by

🇬🇧United Kingdom jonathan1055

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