The documenation says the method should return integer or string, however for new entities it returns null.
Issue fork drupal-3340272
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:
Comments
Comment #3
royalpinto007To fix the return type, we need to make sure that the return value of the method is always an int or a string.
If the return value is not set, we can either set it to a default value (such as 0 or an empty string) or generate a new identifier for the entity.
Comment #5
royalpinto007Comment #6
cilefen commentedThis one is tagged "Documentation" so as I interpret it, the intention was only to change the return type annotation.
Comment #7
royalpinto007Got it, thanks for the review @cliefen.
I have made the required modifications and reverted back my old commit.
Comment #8
cilefen commentedThis LGTM based on what I understand this issue to mean.
Comment #9
kleiton_rodrigues commentedRTBC +1
Comment #10
catchCommitted 663d0d4 and pushed to 10.1.x. Thanks!
Comment #12
catch