This module allows the users who configure form to add a text description related to a group of fields. Then it is easier for the user of that form to get information on particular use cases of the form. Actually the description attached to a form field is useful but can be a bit narrow in several cases. At the same time, the use of the field_group module can help to organise field but there is no way to describe an add information for users. That's why this module combine the two approches, with the availability of adding a useful description for several fields.
Project link
https://www.drupal.org/project/form_helper_widget
Git instructions
git clone --branch 8.x-0.x https://git.drupalcode.org/project/form_helper_widget.git
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-form_helper_wi...
Comments
Comment #2
avpadernoThank you for applying! I added the Git instructions for non-maintainer users and the PAReview checklist link. Reviewers will check the project and post comments to list what should be changed.
If you haven't done it, yet, please check the PAReview report and fix what needs to be fixed. There could be some false positives; verify that what reported is correct, before making any change.
Comment #3
avpadernoIn annotation, each key needs to go on each own line. (There is also a typo on adminstrable and wraped.)
The README.txt file contains lines longer than 80 characters. The extension of the file itself should be .md, since it's a Markdown file.
Comment #4
tsecher commentedThank you for your review. I am sorry, it is the first time a submit a module for the security advisory coverage.
I update the sources so you can download them by :
git pull origin 8.x-0.x
Comment #5
mostepaniukvmThanks for contribution!
I checked the code and find some questions.
I tried to add helper group to form mode page and get next notice:
'#default_value' => $description['value'],You have to correct default value.
Also, look at defaultContextSettings method:
I think you have to use parent::defaultContextSettings instead of parent::defaultSettings
and looks like this rows is not required
form_helper_widget.info.yml
We don't have to set "drupal:field" as a dependency because field_group module already did it.
Also, I don't sure about indentation like here:
Does drupal coding standards allows it? Because I used to set only one space after array key.
Comment #6
avpadernoThe indentation is always 2 spaces, as per Drupal coding standards. This means that the following code is correctly formatted, since the indentation is increased by 2 spaces each time.
Comment #7
tsecher commentedThank you for all the time spend on review.
I updating the sources according to your recommandations.
You can download the new sources by :
git pull origin 8.x-0.x
Comment #8
tsecher commentedComment #9
crafter commentedOne issue to fixed maybe it's not a problem but for people who are going to use that module can be important.
In your twig template templates/form-helper-widget.html.twig is lack comment variables at the beginning of the file.
Documentation said that we should add some available variables.
For example
Comment #10
crafter commentedComment #11
klausiReviewed the code, looks good to me! Did not see any security issues.
The doc block in the template is a nice to have, but not an application blocker. I think this is ready to be approved!
Comment #12
avpadernoThank you for your contribution! I am going to update the project to opt it into security coverage.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.