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

Created on 7 January 2024, 6 months ago
Updated 21 February 2024, 4 months ago

When using the Address 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 Address (and also Commerce and Plugin)

The problem line is project/address/-/blob/2.0.x/src/Plugin/Field/FieldType/AddressItem.php

📌 Task
Status

Fixed

Version

2.0

Component

Code

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.69.0 2024