Drupal 11, definition of FieldType FileUrlItem

Created on 30 June 2025, 6 days ago

In drupal 11, there is a bug with definition of FieldType FileUrlItem.php

I got the error :
TypeError: Cannot access offset of type Drupal\Core\StringTranslation\TranslatableMarkup in isset or empty in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 45 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

In src/Plugin/Field/FieldType/FileUrlItem.php, I change
* category = @Translation("Reference"),
By
* category = "reference",

๐Ÿ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium philalawst

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