Problem/Motivation
The hook_help text, displayed on the Help page for the Layout Builder module, only has a very brief about section and the link to further documentation only is broken.
All functionality should be described under Uses, following the Help text standards https://www.drupal.org/docs/develop/documenting-your-project/help-text-s...
Proposed resolution
Document all functionality.
Remaining tasks
- Update the About section, possibly starting along the lines of the module description #2999719: Update the Layout Builder module description and clarify how it differs from Field Layout
- Fix the link to online documentation
- Document all functionality and thereby also the terminology in the Uses section
Since this is a new functionality, this text will need to be reviewed by one of the maintainers to see whether the functionality was understood correctly, and to see that nothing is missing.
User interface changes
This is a UI text change.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | 2999731-hookhelp-18-interdiff.txt | 1.53 KB | tim.plunkett |
| #18 | 2999731-hookhelp-18.patch | 2.4 KB | tim.plunkett |
| #15 | 2999731-hookhelp-15-interdiff.txt | 3.31 KB | tim.plunkett |
| #15 | 2999731-hookhelp-15.patch | 2.48 KB | tim.plunkett |
| #13 | 2999731-hookhelp-13.patch | 2.49 KB | tim.plunkett |
Comments
Comment #2
ifrikComment #3
tim.plunkettDuplicate of #2919811: Write Layout Builder handbook documentation, but this issue summary is better, so closing that one and migrating the tags over.
Comment #4
xjmYep, stable blocker for sure. Thanks @tim.plunkett and @ifrik. Not sure how I missed this as a stub page should have been an alpha blocker. :) But we definitely should finish it up for 8.7 so that we can make LB stable!
Comment #5
xjmhttps://www.drupal.org/docs/8/core/modules/layout_builder is the page that's currently linked in
hook_help(), but it doesn't exist.Comment #6
xjmComment #7
tim.plunkettOn second thought, reopened #2919811: Write Layout Builder handbook documentation to be specifically about the d.o handbook
Comment #8
wim leersComment #9
tedbowI have started the guide: https://www.drupal.org/docs/8/core/modules/experimental-layout-builder
Comment #10
r.aubin commentedQuick patch for correcting the link to the stub doc pages:
https://www.drupal.org/docs/8/core/modules/experimental-layout-builder
Comment #11
tim.plunkettI fixed the handbook page URL instead, it now matches the correct URL in core:
https://www.drupal.org/docs/8/core/modules/layout-builder
Comment #12
bnjmnmComment #13
tim.plunkettSee attached.
Comment #14
bnjmnmCompared this to the hook_help() contents of several other modules and this has a similar level of detail. Everything spotted is just nits and some potentially subjective.
This is a run-on sentence. Starting a new one after "content entities" should work.
Here "Manage Display" is referred to as a section, in the linked Field UI docs, it's referred to as a page.
Unsure if this is excessive for hook_help - is it possible to explain that Layout Builder can be enabled/disabled on a per-view-mode basis, and the layouts can be unique for each? This is a soft suggestion because I attempted to come up with a good way to word this and couldn't produce anything concise/clear.
Possible rephrasing to slightly shorten the first sentence and clarify the subject-verb relationship of the second.
"If enabled, each individual content item can have a custom layout. Once the layout for an individual content item is overridden, changes to the Default layout will no longer effect it..."
Comment #15
tim.plunkett#14
1)
Switched from
to
2)
Improved this (I think?)
3)
Made this change, but had to switch from effect to affect :D
Comment #16
bnjmnmThose changes work for me - lets send it up the chain.
Comment #17
gábor hojtsyThanks a lot! This looks close. Found one problem, and pondered on one thing that looked fine at the end:
I believe linking to the layout API documentation right away as the first link to explain what we are dealing with is not appropriate for site builder docs. I looked if there is a better place to look for layouts explained, but the "For more information ..." link already explains that.
I would just remove the link from Layouts here.
The reference to field UI sounded too technical as well, but after reading the actual field_ui_help(), it seems like that explains it fine and it makes sense to link it like this, so this looks fine after all.
Comment #18
tim.plunkett#17
1) Fair enough, removed.
2) Great! Also I should note I borrowed this from
content_moderation_help().Re-RTBCing since the only change was to remove a link.
Comment #20
gábor hojtsyThanks all! :)