Closed (outdated)
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2019 at 23:24 UTC
Updated:
15 Jun 2026 at 12:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leers👍
Comment #3
hchonov+1.
Comment #4
jibranHow about this?
Comment #5
berdirNot sure if the name is enough, maybe $entity_type_id.$field_name? Or maybe the field type instead, becaue the implementation is based on the field type, not name. And that's what you have to look up in the end. Also, I think we usually don't use sprintf().
Comment #6
jungleAppend this issue link to the message.
BTW, at the commit 32f4d3e44c found 23 matches of 16 files used
sprintf()insidetrigger_error()Comment #7
hchonovI don't think that it is important if we use sprintf() or not, but we definetly should add more information as suggested in #5:
I think that the field type is more important, but we could add not only it, but the entity type and field name as well.
Comment #8
jungleSorry, maybe a wrong link appended. If there is a link, it should be the link of change record. Ignore it, please.
Comment #9
jungle$field_label(entity type: $entity_type_id, bundle: $bundle, field name: $field_name)added.And the change record link appended.
Comment #11
martin107 commentedJust posting a users perspective..
Grumpily -- I saw the old error message ... googled for help .. found this issue .. applied the patch
and after was happy that it pin pointed the error. ... Happiness.
Here is the improved error report.
Comment #12
jibranWhat about we move this statement to
\Drupal\Core\Field\FieldItemBaseclass?Comment #13
mradcliffeI removed the Novice tag because I do not think there are any more actionable tasks for Novices with the pending question for review by @jibran.
Comment #20
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #23
quietone commentedThis deprecation message was removed in #3104307: Remove BC layers in various Drupal\Core components