- Issue created by @joachim
- ๐ฌ๐งUnited Kingdom joachim
This should also say that the 'default' view mode is not returned -- using the return of one of these to iterate through getViewDisplay() for all modes will omit it!
- First commit to issue fork.
- ๐ฎ๐ณIndia govind_giri_goswami
govind_giri_goswami โ changed the visibility of the branch 3411186- to hidden.
- ๐ฎ๐ณIndia govind_giri_goswami
govind_giri_goswami โ changed the visibility of the branch 3411185- to hidden.
- ๐ฎ๐ณIndia govind_giri_goswami
govind_giri_goswami โ changed the visibility of the branch 3411185-docs-for-return to hidden.
- Merge request !6469Issue #3411185: docs for return values from various EntityDisplayRepositoryInterface() are unclear โ (Open) created by govind_giri_goswami
- Status changed to Needs review
about 1 year ago 8:14am 6 February 2024 - ๐ฎ๐ณIndia govind_giri_goswami
Each method (e.g., getAllViewModes(), getViewModes(), getAllFormModes(), getFormModes()) is now individually documented. Previously, their return documentation simply stated @return array, lacking clarity on the array's structure. The updated documentation provides additional details for clarity, enhancing developers' understanding.
- ๐ง๐ชBelgium borisson_ Mechelen, ๐ง๐ช
I think this is mostly better than what we had in the original docblocks, but the wording here is not something we typically use in Core. I think we should only include the ones we know for sure that exist.
Can we find documentation that is similar and copy the style?
Not sure what @joachim thinks about this - Status changed to Needs work
about 1 year ago 12:37pm 12 February 2024 - ๐ฌ๐งUnited Kingdom joachim
> I think we should only include the ones we know for sure that exist.
Agreed.
If other keys might exist, we can say that, for instance (totally making this up) 'Further properties may be added by modules that implement hook_foo_alter()'.
If the return of all of these has the same format, I think it's ok to use a @see getAllViewModes() and only have the docs in one place.
Also see #2.
- Assigned to akshaydalvi212
- ๐ฎ๐ณIndia akshaydalvi212
Will provide some docs for the returns values.
- Issue was unassigned.
- ๐ช๐ธSpain rodrigoaguilera Barcelona
By looking at the failed tests I think there is typo "Initail"
- Merge request !9637Resolve #3411185 "Return Document spellcheck updates" โ (Open) created by santhosh@21
- ๐ฎ๐ณIndia santhosh@21
I have updated the spellcheck and the pipeline is failing in different functional tests related to the Umami and that doesn't suits for this document return type issue.
- ๐ช๐ธSpain rodrigoaguilera Barcelona
Did a rebase and the pipeline is green again
- ๐ต๐ฐPakistan sadamafridi
I have reviewed the fix, the pipeline is green and spell mistake has been corrected.
- ๐ฎ๐ณIndia santhosh@21
Thank you @sadamafridi and @rodrigoaguilera for reviewing the issue and updating the comments
- ๐ณ๐ฟNew Zealand quietone
Thanks for working on this!
The issue summary and title state this is for EntityDisplayRepositoryInterface() and yet there are changes to several files in the composer directory. Those are out of scope and should be moved to their own issue.
Thanks
- ๐ณ๐ฟNew Zealand quietone
I should have added that we do have guidelines for scoping of an issue, Issue scope guidelines for Drupal core issues โ . They explain why we limit the scope of an issue.
- Assigned to brandonlira
- ๐ง๐ทBrazil brandonlira
Hi everyone,
I have updated the merge request to remove unrelated changes in the composer/ directory and keep only the documentation improvements for EntityDisplayRepositoryInterface.php.
Now, the MR focuses solely on clarifying the return values for the getAllViewModes(), getViewModes(), getAllFormModes(), and getFormModes() methods, following the previous feedback.
Please review the changes and let me know if any further adjustments are needed.
Thanks!
- ๐ง๐ทBrazil brandonlira
Hi @smustgrave ,
I can confirm that my changes are included in the latest pipeline (#449876), even though the commit history might not explicitly show my name due to the rebase process.
The updates focus solely on documentation improvements for EntityDisplayRepositoryInterface.php MR !9637 , and all unrelated changes have been removed.
Please review and let me know if any further adjustments are needed.
Thanks!
- ๐บ๐ธUnited States smustgrave
I donโt believe thatโs true the MR is 700+ commits behind
- ๐ง๐ทBrazil brandonlira
Hi @smustgrave,
I have successfully rebased the branch with the latest changes from 11.x. The MR is now up to date, and the documentation improvements remain intact.
Additionally, I have fixed the PHPCS violations by adjusting the line lengths to conform with Drupal coding standards.
I also noticed that some tests have failed (`Drupal\Tests\package_manager\Build\PackageInstallTest` and `Drupal\Tests\ckeditor5\FunctionalJavascript\ImageUrlProviderTest`), but they do not seem to be related to the changes made in this MR.
Let me know if any further adjustments are needed.
Thanks!