Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
API page: https://api.drupal.org/api/drupal/core%21includes%21entity.inc/function/...
> as of Drupal 8.0.x, will be removed before Drupal 9.0.0. If the entity form display is available in configuration use:
This doesn't say what to use!
Comment | File | Size | Author |
---|---|---|---|
#2 | 2892469-2.patch | 1.51 KB | shashikant_chauhan |
Comments
Comment #2
shashikant_chauhan CreditAttribution: shashikant_chauhan as a volunteer and at Iksula commentedAdding patch.
Comment #3
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedPatch worked fine for me. Thanks
Comment #4
aburrows CreditAttribution: aburrows as a volunteer commentedAll the changes do are indent the comments..
Comment #5
joachim CreditAttribution: joachim commentedThat might be all that is needed though?
The problem is not that anything is missing from the documentation, but that what is in the documentation isn't getting output on the API site. So it is a formatting problem, as API module is not picking up on the whole of the deprecation notice. Aligning it with the start of the notice looks like it could be the right fix.
Comment #6
shashikant_chauhan CreditAttribution: shashikant_chauhan as a volunteer and at Iksula commentedHere is the example which shows the correct display when it's formatted/indented.
https://api.drupal.org/api/drupal/core%21includes%21entity.inc/function/...
Comment #7
joachim CreditAttribution: joachim commentedThanks for the link!
Looking at the source of that function's docs to see how it's formatted (https://api.drupal.org/api/drupal/core%21includes%21entity.inc/8.2.x), I think the patch here fixes the problem.
Comment #8
Gábor HojtsySo what is the issue on https://api.drupal.org/api/drupal/core%21includes%21entity.inc/function/... ? I see it displays the code example already as it should. What are we fixing here?
Comment #9
joachim CreditAttribution: joachim commentedIt displays the code example in the main part of the docs, but not the code example in the deprecation notice. That just says:
and stops at 'use:'.
Comment #11
Gábor HojtsyYou are right, I was looking at the wrong thing. Thanks for pushing this back.