Problem/Motivation

Modules are supposed to provide a Help text page, but the hook_help text of the Paragraphs Types module only says "Paragraphs".

Proposed resolution

Write a help text according to https://www.drupal.org/node/632280

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#49 interdiff-2702561-46-49.txt3.21 KBjohnchque
#49 provide_a_hook_help_text-2702561-49.patch7.92 KBjohnchque
#48 interdiff-2702561-43-46.txt1.1 KBchishah92
#46 Provide_a_hook_help_text-2702561-46.patch7.85 KBchishah92
#43 Provide_a_hook_help_text-2702561-43.patch7.84 KBifrik
#43 interdiff-2702561-33-43.txt5.02 KBifrik
#33 interdiff-2702561-31-33.txt819 bytesloopduplicate
#33 paragraphs-help--2702561-33.patch7.86 KBloopduplicate
#31 Provide_a_hook_help_text-2702561-32.patch8.38 KBifrik
#31 interdiff-2702561-28-32.txt7.33 KBifrik
#28 Provide_a_hook_help_text-2702561-28.patch8.45 KBifrik
#28 interdiff-2702561-19-28.txt11.36 KBifrik
#19 Provide_a_hook_help_text-2702561-19.patch8.11 KBifrik
#19 interdiff-2702561-14-19.txt3.43 KBifrik
#17 paragraphs-provide_a_hook_help_text-2702561-17.patch3.99 KBNitinSP
#14 Provide_a_hook_help_text-2702561-14.patch8.11 KBifrik
#14 interdiff-2702561-3-14.txt10.87 KBifrik
#5 After Patch #3.png192.24 KBdbt102
#5 Before Patch #3.png74.14 KBdbt102
#3 Provide_a_hook_help_text-2702561-3.patch3.76 KBdbt102
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ifrik created an issue. See original summary.

dbt102’s picture

Component: User interface » Code
Assigned: Unassigned » dbt102
Category: Bug report » Task
Priority: Normal » Minor

Assigning this to myself. Should have a decent patch by the end of today.

Changing category from Bug to Task (hook_help is working, the doco is shows is just not complete)

Priority from "normal" to "minor" (help is not intended to provide a substantial amount of info)

Component from UI to Code because the text needs to be put into code and submitted as a patch.

Assigned to myself, so others don't waste their time working on this issue, because I've started on it :-)

dbt102’s picture

Status: Active » Needs review
dbt102’s picture

FileSize
74.14 KB
192.24 KB

Here are before and after screenshots to help review.

dbt102’s picture

Assigned: dbt102 » Unassigned

Unassigning the task from myself so others won't shy away from testing this patch

ifrik’s picture

Thanks dbt102. The text describes the functionality provided with a good amount of detail.

However the format doesn't quite follow the Help text standard that we use for core modules. If you are okay with it, then I could just work on it a bit to make it more consistent with that and iron out a few, smaller points that I can see.

dbt102’s picture

Thanks for the review @ifrik, and or course your help would be greatly appreciated

However, your comment is quite vague, could you be a bit more specific about what exacty does not meet the standard?

The release notes for Drupal 8.1.0 indicates an " Improved site administration experience: * Improved admin/help page to be more flexible and list tours on it."

The Help text standard (for core and contrib) gives a detailed account of how to do this the 'drupal way'.

The way I've done it elsewhere is to carefully implement each aspect (1-4) and apply patch(s) to meet the specific module's use case. We'll see how that approach works here.

dbt102’s picture

Following is my review checklist w/ comments of what is included with this patch.

1. Short description of what the module does. It is displayed on the Extend or Modules page (in Drupal 8 or 7). It is the only texts users will see if the module is not enabled yet.

^-- This was actually already in place and the format looks ok to me.

2. Description on links are displayed with the links on the Configuration and Structure pages and invite users to do something.

^-- This refers to the hover text ( or tooltip) in play when hovering over the link to /admin/structure/paragraph_type . This looks OK to me.

3. Explanations on the administration pages. Ideally this should not be needed, but if they do they are short and do not duplicate the help page.

^-- Not need in this case.

4. Help page displayed by the Help module with three sections: What does the module do, what can users do with it, and a link to the online documentation here on drupal.org. This hook_help() text is in the my_module.module file.

^-- The bulk of the work for this patch resides here. It includes the three required section with descriptive text to help user understand the particulars of this module. Also, Drupal standards call for a readme.txt file to be included with contributed projects. And, there is one for this module

ifrik’s picture

I think the release notes for 8.1.0 refer to the page that links to all the individual help pages and that now also lists any existing tours - not to the hook_help texts themselves.

The points I noticed on a quick scan are mainly formatting and wording issues, such as structuring the uses with dt and dd tags, not referring to Drupal (because the module can be used in other distributions as well), using capitals, the wording used for linking to documentation on d.o
The item about paragraphs being fieldable could link to the Field and Field UI help pages, and I think we got some wording for that as well.

In this case it might just be faster if I edit the text accordingly (because I've worked on so many of the core module help texts) instead of spending the time to write them up in the comment. I just wanted to check first whether that's okay with you.

ifrik’s picture

On #9:
There is a seperate issue and a patch for the points 1-3: #2702557
The texts are certainly there, but could be edited to improve the usability for site builders.

dbt102’s picture

Thanks @ifrik

I reviewed your patch @ #2702557: Edit UI texts for admin pages nice job there, and yes ... definately tweaking what I started here would be appreciated.

I've been targeting HELP on the modules we are using on D8 site builds. We'd like to get tours in them for our customers, but want to get decent HELP in place first. Thats why I reference the Release 8.1.0 notes

Appreciate your comments.

ifrik’s picture

Okay, working on it.

ifrik’s picture

I've edited the hook_help text following the default format that we used for the D8 core modules. I hope I didn't loose anything along the way.
I also formatted the links in the text according to use the proper routing.

I've also added the hook_help texts for the Paragraphs demo and Paragraphs Type Permission modules.

johnchque’s picture

Status: Needs review » Needs work
+++ b/modules/paragraphs_demo/paragraphs_demo.module
@@ -5,14 +5,38 @@
+function paragraphs_demo_help($route_name, RouteMatchInterface $route_match){

+++ b/modules/paragraphs_type_permissions/paragraphs_type_permissions.module
@@ -7,6 +7,28 @@
+function paragraphs_type_permissions_help($route_name, RouteMatchInterface $route_match){

+++ b/paragraphs.module
@@ -19,14 +19,22 @@ define('PARAGRAPHS_DEFAULT_FORM_DISPLAY_MODE', 'default');
+function paragraphs_help($route_name, RouteMatchInterface $route_match){

A whitespace missing between ) and {

+++ b/modules/paragraphs_demo/paragraphs_demo.module
@@ -5,14 +5,38 @@
+ ¶

Extra whitespace.

+++ b/modules/paragraphs_type_permissions/paragraphs_type_permissions.module
@@ -7,6 +7,28 @@
+      $output .= '<dt>' . t('Configuring permissons per paragraphs type') . '</dt>';
+     $output .= '<dd>' . t('Administrators can configure the permissions to view, create, edit and delete each <em>paragraphs type</em> individually on the <a href=":permissions">Permissions page</a>.', array(':permissions' => \Drupal::url('user.admin_permissions'))) . '</dd>'; ¶
+      return $output;

Indentation.

NitinSP’s picture

Assigned: Unassigned » NitinSP
NitinSP’s picture

I have added hook_help() with appropriate information, please apply and test this patch.

ifrik’s picture

Hi NitinSP,

is there a particular reason why you disregarded the patch that I provided in #14?

ifrik’s picture

Thanks yongt9412,

Sorry, it looks like I paid more attention to content standards then to coding standards.
I removed the empty lines between comments and functions, removed a trailing whitespace and fixed the indentation.

dbt102,
What do you think about the changes that I made to your wording? Did I miss anything?

ifrik’s picture

Assigned: ifrik » Unassigned
johnchque’s picture

Looks better to me now but I would like to get more feedback.

tduong’s picture

Status: Needs review » Needs work
+++ b/modules/paragraphs_demo/paragraphs_demo.module
@@ -5,14 +5,36 @@
+      $output .= '<p>' . t('The Paragraphs Demo module provides several <em>paragraphs types</em> for the <a href=":paragraphs">Paragraphs module</a>, but no separate user interface. For more information, see the <a href=":online">online documentation for the Paragraphs module</a>.', array(':online' => 'https://www.drupal.org/node/2444881', ':paragraphs' => \Drupal::url('help.page', array('name' => 'paragraphs')))) . '</p>';
...
+      $output .= '<dd>' . t('Adminstrators can edit the provide <em>paragraphs types </em> on the <a href=":paragraphs">Paragraphs types page</a> if the <a href=":field_ui">Field UI</a> module is enabled. For more information on fields and entities, see the <a href=":field">Field module help page</a>.', array (':paragraphs' => \Drupal::url('entity.paragraphs_type.collection'), ':field' => \Drupal::url('help.page', array('name' => 'field')), ':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? \Drupal::url('help.page', array('name' => 'field_ui')) : '#')) . '</dd>';
...

[and more...]

Please don't use Drupal::url(...), since it is deprecated. Use Url::fromRoute(...)->toString() instead.

dbt102’s picture

Status: Needs work » Reviewed & tested by the community

@ifrik wrt #19

What do you think about the changes that I made to your wording? Did I miss anything?

I think the wording definately moved this patch forward, nice job on that

@yongt9412 wrt #21

Looks better to me now but I would like to get more feedback.

I agree with you @yongt9412 looks like @ifrik's #19 patch cleaned up the whitespace errors you identified

@tduong wrt #22

Please don't use Drupal::url(...), since it is deprecated. Use Url::fromRoute(...)->toString() instead.

guess I'm confused about this comment, the HELP standard were are addressing is here -->https://www.drupal.org/node/632280

on that page there is a section "Drupal 8 note about url() and routing"

??? The way I understand this, @ifrik has followed the standard ???

ifrik’s picture

Thanks tduong, thanks dbt102,

tduong, can you point me to the issue or so that depriciated Drupal::url() ?
I'm happy to change it - and update the help text standard page as well.

tduong’s picture

Status: Reviewed & tested by the community » Needs work

guess I'm confused about this comment, the HELP standard were are addressing is here -->https://www.drupal.org/node/632280

I guess that needs to be updated ^^'

tduong, can you point me to the issue or so that depriciated Drupal::url() ?

I pointed out them yesterday but saw that the comment was too long, so I've truncated it. Basically you need to update the deprecated Drupal::url() each time you put the link to the a-tag with a route name. In details you have:

  • in paragraphs.module: 2 calls for help.page, 2 for entity.paragraphs_type.collection and 1 for paragraphs.prepare_uninstall
  • in paragraphs_demo.module: 3 calls for help.page and 2 calls for entity.paragraphs_type.collection
  • in paragraphs_type_permissions.module: 1 call for help.page and 1 for user.admin_permissions

Furthermore, please also switch the array() to its shortened syntax [] according to the array standard coding.

And...

+++ b/modules/paragraphs_type_permissions/paragraphs_type_permissions.module
@@ -7,6 +7,27 @@
+ * Provides a help text for the Paragraphs Type Permissions  module.

double space :P

Btw, I was wondering if it would be better if we start to initialise $output = ''; outside the switch control structure and place return $output; at the end of the hook_help method (?) also to avoid a "missing return statement" when you do an "inspect code" of the module...
But this is just my opinion. For now let's fix the remaining things here, and commit nice help pages for Paragraphs! :D

ifrik’s picture

Assigned: Unassigned » ifrik

Thanks,
I'll do that.

dbt102’s picture

@ifrik @tduong thanks for you comments

I guess that needs to be updated

yep, looks like the the Help text standard (for core and contrib) needs to be update per the "Deprecated" notice on public static function Drupal::url

ifrik’s picture

Thanks, I've changed the Drupal::url and used the shortened syntax for arrays.

I've also deleted a double space at two places.

tduong’s picture

Status: Needs review » Needs work

Still needs work:

  1. +++ b/paragraphs.module
    @@ -18,15 +19,22 @@ define('PARAGRAPHS_DEFAULT_FORM_DISPLAY_MODE', 'default');
    +      $output .= '<dd>' . t('Adminstrators can add fields to a <em>paragraphs type</em> on the <a href=":paragraphs">Paragraphs types page</a> if the <a href=":field_ui">Field UI</a> module is enabled. The form display and the display of the paragraphs type can also be managed on this page. For more information on fields and entities, see the <a href=":field">Field module help page</a>.', [':paragraphs' => Url::fromRoute('entity.paragraphs_type.collection')->toString(), ':field' => Url::fromRoute('help.page', array('name' => 'field'))->toString(), ':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? Url::fromRoute('help.page', array('name' => 'field_ui'))->toString() : '#']) . '</dd>';
    

    you still have 2 array() to be shortened in paragraphs.module. And typo: "Adminstrators".

  2. +++ b/modules/paragraphs_demo/paragraphs_demo.module
    @@ -5,14 +5,37 @@
    +      $output .= '<dd>' . t('Adminstrators can edit the provide <em>paragraphs types </em> on the <a href=":paragraphs">Paragraphs types page</a> if the <a href=":field_ui">Field UI</a> module is enabled. For more information on fields and entities, see the <a href=":field">Field module help page</a>.', [':paragraphs' => Url::fromRoute('entity.paragraphs_type.collection')->toString(), ':field' => Url::fromRoute('help.page', ['name' => 'field'])->toString(), ':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? Url::fromRoute('help.page', ['name' => 'field_ui'])->toString() : '#']) . '</dd>';
    

    Typo: "Adminstrators".

  3. +++ b/modules/paragraphs_type_permissions/paragraphs_type_permissions.module
    @@ -4,9 +4,31 @@
    +    // Help for the paragraphs type permissons module.
    ...
    +      $output .= '<dt>' . t('Configuring permissons per paragraphs type') . '</dt>';
    

    2 typos: "permissons".

  4. +++ b/modules/paragraphs_demo/paragraphs_demo.module
    @@ -5,14 +5,37 @@
    -function paragraphs_demo_preprocess_node(&$variables) {
    -  // If more general approach is needed then implement preprocessor for
    -  // paragraph.html.twig.
    + function paragraphs_demo_preprocess_node(&$variables) {
    +   // If more general approach is needed then implement preprocessor for
    +   // paragraph.html.twig.
    

    what happened ? it was fine as before :)

Otherwise looks fine to me :)

ifrik’s picture

Assigned: Unassigned » ifrik

Thanks, I'll do that as well.

ifrik’s picture

Fixed the two arrays and the typing errors.
The white space in 4. probably sneaked in there by accident when I was struggling with my new vim setup.

loopduplicate’s picture

Status: Needs review » Needs work
+++ b/modules/paragraphs_demo/paragraphs_demo.module
@@ -5,14 +5,37 @@
 function paragraphs_demo_preprocess_node(&$variables) {
...
+   // If more general approach is needed then implement preprocessor for
+   // paragraph.html.twig.

These lines should only be indented 2 spaces, right?

loopduplicate’s picture

Here's a patch with the change I suggested in #32.
Regards,
loop

dbt102’s picture

Status: Needs review » Reviewed & tested by the community

I applied -32.patch by @ifrik to fresh git clone of --branch 8.x-1.x. It applied cleanly.

I did a visual review of the code to compare -32.patch to another local install patched with the -19.patch. I was interested to learn URL:: and the shortened syntax for the array. I clicked thru all links and read all revised content. It looks good to me.

Thanks for the work on this @ifrik, and for your keen reviews @tdoung. For me, it will provide a good model reference for HELP updates on other core/contrib modules moving forward.

wrt -33.patch by @loopduplicate ... imo ... guess that seems out of scope for this issue, but I guess cleanup of comment spacing is not a bad thing

loopduplicate’s picture

"guess that seems out of scope for this issue, but I guess cleanup of comment spacing is not a bad thing"
The patch in #33 leaves the comment alone. The patch in #31 altered the comment and put in extra space.

Regards,
loop

tduong’s picture

"guess that seems out of scope for this issue, but I guess cleanup of comment spacing is not a bad thing"
The patch in #33 leaves the comment alone. The patch in #31 altered the comment and put in extra space.

Yes, until #31 that indentation has been added probably by mistake (as @ifrik wrote, it was probably for his new vim setup). In #33 it has just been reverted as it is on the branch now, so on commit those lines won't be changed, thus "no unrelated changes", just a healthy "patch cleanup" ;)

dbt102’s picture

oooo ... my bad .... so, nice catch @loopduplicate, I didn't pick up on that

ifrik’s picture

Thanks for cleaning up the code further.

Just a short note on consistency and naming patches: If you work further on an existing patch, then it is better to keep the existing patch name - even if you would prefer a different name.
That way it is clear to everybody that this a continuation of the previous work and not a new patch started all over again.

jhodgdon’s picture

Status: Reviewed & tested by the community » Needs work

This help has some problems actually:

  1. +++ b/modules/paragraphs_demo/paragraphs_demo.module
    @@ -5,6 +5,29 @@
    + * Provides a help text for the Paragraphs demo module.
    

    This should instead say:

    Implements hook_help().

  2. +++ b/modules/paragraphs_demo/paragraphs_demo.module
    @@ -5,6 +5,29 @@
    +      $output .= '<p>' . t('The Paragraphs Demo module provides several <em>paragraphs types</em> for the <a href=":paragraphs">Paragraphs module</a>, but no separate user interface. For more information, see the <a href=":online">online documentation for the Paragraphs module</a>.', [':online' => 'https://www.drupal.org/node/2444881', ':paragraphs' => Url::fromRoute('help.page', ['name' => 'paragraphs'])->toString()]) . '</p>';
    

    paragraphs types -> paragraph types

  3. +++ b/modules/paragraphs_demo/paragraphs_demo.module
    @@ -5,6 +5,29 @@
    +      $output .= '<dt>' . t('Changing demo paragraphs types') . '</dt>';
    

    paragraphs types -> paragraph types

  4. +++ b/modules/paragraphs_demo/paragraphs_demo.module
    @@ -5,6 +5,29 @@
    +      $output .= '<dd>' . t('Administrators can edit the provide <em>paragraphs types </em> on the <a href=":paragraphs">Paragraphs types page</a> if the <a href=":field_ui">Field UI</a> module is enabled. For more information on fields and entities, see the <a href=":field">Field module help page</a>.', [':paragraphs' => Url::fromRoute('entity.paragraphs_type.collection')->toString(), ':field' => Url::fromRoute('help.page', ['name' => 'field'])->toString(), ':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? Url::fromRoute('help.page', ['name' => 'field_ui'])->toString() : '#']) . '</dd>';
    

    provide -> provided
    paragraphs types -> paragraph types

  5. +++ b/modules/paragraphs_demo/paragraphs_demo.module
    @@ -5,6 +5,29 @@
    +      $output .= '<dt>' . t('Deleting demo paragraphs types') . '</dt>';
    

    paragraphs types -> paragraph types

  6. +++ b/modules/paragraphs_type_permissions/paragraphs_type_permissions.module
    @@ -4,9 +4,31 @@
    + * Provides a help text for the Paragraphs Type Permissions module.
    

    This should say:

    Implements hook_help().

  7. +++ b/modules/paragraphs_type_permissions/paragraphs_type_permissions.module
    @@ -4,9 +4,31 @@
    +      $output .= '<p>' . t('The Paragraphs Type permission module allows administrators to configure permission individually for each <em>paragraphs type</em>. For more information, see the <a href=":online">online documentation for the Paragraphs module</a>.', [':online' => 'https://www.drupal.org/node/2444881']) . '</p>';
    ...
    +      $output .= '<dt>' . t('Configuring permissions per paragraphs type') . '</dt>';
    

    What is the real name of this module? I guess it is probably

    Paragraph Type Permissions

    ? Make sure it matches here what is in the .info.yml file.

    Also
    configure permission -> configure permissions
    paragraphs type -> paragraph type

  8. +++ b/modules/paragraphs_type_permissions/paragraphs_type_permissions.module
    @@ -4,9 +4,31 @@
    +      $output .= '<dd>' . t('Administrators can configure the permissions to view, create, edit and delete each <em>paragraphs type</em> individually on the <a href=":permissions">Permissions page</a>.', [':permissions' => Url::fromRoute('user.admin_permissions')->toString()]) . '</dd>';
    

    paragraphs type -> paragraph type

    Also there should be a comma before and

  9. +++ b/paragraphs.module
    @@ -18,15 +19,22 @@
    +      $output .= '<p>' . t('The Paragraphs module provides a field type that can contain several other fields and thereby allows users to break content up on a page. Administrators can predefine <em>paragraphs types</em> (for example a simple text block, a video, or a complex and configurable slideshow). Users can then place them on a page in any order instead of using a text editor to add and configure such elements. For more information, see the <a href=":online">online documentation for the Paragraphs module</a>.', [':online' => 'https://www.drupal.org/node/2444881']) . '</p>';
    

    paragraphs types -> paragraph types

    I am getting tired of typing this... please make this fix in the rest of the patch.

  10. +++ b/paragraphs.module
    @@ -18,15 +19,22 @@
    +      $output .= '<dt>' . t('Preparing to uninstalling paragraphs') . '</dt>';
    

    This is not grammatical

  11. +++ b/paragraphs.module
    @@ -18,15 +19,22 @@
    +      $output .= '<dd>' . t('The Paragraphs module cannot be uninstalled when there is Paragraphs data on your website. Users with the appropriate permissions can delete all relevant data by clicking <em>Delete Paragraphs data</em> on the <a href=":uninstall">Prepare uninstall page</a>.', [':uninstall' => Url::fromRoute('paragraphs.prepare_uninstall')->toString()]) . '</dd>';
    

    We don't tell how to uninstall any other similar modules. We should really just drop this.

jhodgdon’s picture

Oh sorry. I was led here by a Drupal Core issue and didn't realize this was a separate module until after that review.

You can ignore me... although I think it would be good if the grammar and standards were cleaned up as suggested there, you can do as you wish in your contrib module. Sorry about intruding!

johnchque’s picture

Thanks @jhodgdon for the feedback. I am wondering what should be done since the original module is called "Paragraphs" and "Paragraphs types permissions" is a sub module of it. IMHO it looks like a grammar mistake but is because the sub module name is based on the module name. What do you suggest?

ifrik’s picture

Thanks jhodgon,
for reviewing this anyway.

I had been stumbling over the plural in "Paragraphs types" as well, but unfortunately that's what's used in the UI as well so that. (I might make another issue to improve that as well... :-) .

This contrib module has an page that let's the user clear up all the existing fields, so therefore that page should be documented. Without that specific page, I also would have left it out.

I'm fixing the rest of the points raised.

ifrik’s picture

I fixed the comment about implementing hook_help, and the typos as pointed out in #39

I'm also returning to the original patch name.

johnchque’s picture

Status: Needs review » Needs work
+++ b/modules/paragraphs_demo/paragraphs_demo.module
@@ -5,6 +5,29 @@
+ * Implements hook().

+++ b/modules/paragraphs_type_permissions/paragraphs_type_permissions.module
@@ -4,9 +4,31 @@
+ * Implements hook_help.

This should be changed to: Implements hook_help().

chishah92’s picture

Assigned: Unassigned » chishah92
chishah92’s picture

added a patch with fixes regarding the issues mentioned in #44

Thanks!
~Chirag

johnchque’s picture

Please also provide an interdiff with your changes.

chishah92’s picture

The interdiff for the previous patch

johnchque’s picture

Thanks everyone for such amazing patches, few small things that we needed to change. :)

tduong’s picture

+++ b/modules/paragraphs_type_permissions/paragraphs_type_permissions.module
@@ -1,7 +1,8 @@
- * Add view / create / update / delete permissions for all paragraph types.
+ * Contains paragraphs_type_permissions.module

Personally I don't see the point writing this, I mean.. it is clear.. but this is also used e.g. in image_widget_crop and dropzonejs...
Otherwise I would set it as RTBC ;)

tduong’s picture

Status: Needs review » Reviewed & tested by the community

I think is fine anyway...

miro_dietiker’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Finally, the user isn't left alone and has some help. .-)
We can always improve in small follow-ups.

ifrik’s picture

Thanks a lot!

Now I'm happy to use this positive experience as as example in my DevDays talk.

chishah92’s picture

Assigned: chishah92 » Unassigned
dbt102’s picture

+1

Great job everyone on this, especially @ifrik for you persitance and grace in responding to numerous comment/reviews. It represents a lot of work on such a 'minor' task but has led to good discussion on some larger issues wrt core and HELP standards. Some are tagged below for future reference.

#2731835: Fix all hook function bodies so that their example code uses [] instead of array() syntax.

#2731817: Replace all calls to the deprecated Drupal::url() function in Core

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.