Needs work
Project:
Drupal core
Version:
main
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Sep 2023 at 09:17 UTC
Updated:
9 Nov 2023 at 08:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dpiIt would be easy to copy the param doc from
\Drupal\Core\Entity\EntityStorageInterface::loadRevisionfrom the Drupal 10 branches (it is deprecated for D11)Comment #3
soham sengupta commentedHi, I have updated the param doc. Please review.
Comment #4
smustgrave commentedParam doc was copied from \Drupal\Core\Entity\EntityStorageInterface::loadRevision
Comment #5
dpiLGTM
Comment #6
alexpottI think this issue should go a bit further and make consistent.
\Drupal\Core\Entity\EntityRepository::loadRevision()
\Drupal\Core\Entity\RevisionableInterface::getLoadedRevisionId()
\Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision()
I also think it is worth asking is it really true that revision IDs can be non numeric strings. Yes entity IDs can be strings but that is not the same as a revision ID. I think a revision ID should always be an integer - I'd be amazed if there is any true string revision IDs in contrib or custom. So maybe the fix here is to change them to int and add some casting.