Problem/Motivation
We can provide improved typehinting so we have a better idea that both a class string is returned, and the class string is a implementation of EntityInterface
Proposed resolution
Make the change.
Remaining tasks
User interface changes
None.
Introduced terminology
None.
API changes
Documentation only.
Data model changes
None.
Release notes snippet
None.
Issue fork drupal-3566616
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3566616-typehint-getEntityClass
changes, plain diff MR !14272
Comments
Comment #3
dpiDo/Gitlab is being incredibly flakey today, so heres a link: https://git.drupalcode.org/project/drupal/-/merge_requests/14272
Comment #4
dpiComment #5
longwaveLooks good to me, although are there any similar methods we could improve at the same time?
Comment #6
dpiNot in the same
EntityStorageInterface.Overall in Drupal there is of course plenty of ways to improve.
Comment #11
catchCommitted/pushed to main and 11.x, thanks!