Closed (fixed)
Project:
Drupal core
Version:
11.1.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Aug 2024 at 08:45 UTC
Updated:
1 Jan 2025 at 07:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
tstoecklerCreated a quick MR.
Since this was directly in scope of the lines being touched, I opted to touch up two other things:
- Removed the note about the ID key being required. It is not, it is only required if you actually want to save the entity. That of course means in 99% of cases you do want to specify an ID key, but with contact messages in core we actually have an example of not having an ID, so it doesn't make much sense to claim it's required.
- Removed the usage of the term "Field API". It is a remnant of D7 times. In current times it is actually in correct because
getKeys()is used for config entities as well and they have nothing to do with Field API in its current form. The more correct/current term would be "Entity API", but instead of replacing that I just removed the explicit mentioning of that as that would have felt somewhat out of place there.I also noted that we use the term "property" there, to describe the values of the keys array. That's also somewhat incorrect, as for content entities, those are actually field names and properties are something different, but for config entities we do tend to use the term properties (for example
ConfigEntityTypeInterface::getPropertiesToExport(), so I think it might be more clear to consistently use "field or property" instead of just "property". That would need to be changed a bunch of times, though, in that documentation paragraphs, so I anticipate that being flagged as too broad in scope for this issue.Comment #4
prem suthar commented@tstoeckler you used twice from at the @return array description .
Comment #5
tstoecklerNice catch, thanks! 👍
Comment #6
smustgrave commentedSeems pretty straightforward
Comment #7
kleiton_rodrigues commented@prem-suthar RTBC +1
Comment #8
quietone commented@kleiton_rodrigues, There are contributor tasks on Drupal.org that provide the steps for making useful additions to an issue. You may find How is credit granted for Drupal core issues useful as well.
Comment #9
catchOne comment on the MR.
Comment #10
tstoecklerFixed
Comment #11
smustgrave commentedAlso the MR is 250 commits back :) but you're right the comments would not cause those failures. Feedback from @catch appears to be addressed.
Comment #15
quietone commentedCommitted to 11.x and cherry-picked to 11.1.x
Thanks!