This module allows the site builder to choose a menu with some options, and output a block that contains the menu with applicable branchee markup.
A default version of the Branchee library is provided in the module, but can be overridden with a new version by overriding the library in your theme.
A built in style for the menu can be chosen in the block settings, or a custom class can be provided if you want to customize the styling as per the styling recommendations in the Branchee library.
Project Page: https://www.drupal.org/sandbox/aeotrin/2753955
Git Clone: git clone --branch 8.x-1.x https://git.drupal.org/sandbox/aeotrin/2753955.git branchee_block
Comments
Comment #2
aeotrinComment #3
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxaeotrin2753955git
Fixed the git clone URL in the issue summary for non-maintainer users.
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
aeotrinI have checked the pareview.sh review and noticed the errors were coming from the included library.
As for the warnings, anyone have a suggestion on how I can improve the t() call, or the /Drupal call (as that is how it is used elsewhere in core)
Comment #5
aeotrinComment #6
b.ravanbakhshManual Review:
https://confluence.atlassian.com/bitbucketserver/markdown-syntax-guide-7...
package: User interface
\Drupal::entityManager()->getStorage($entity_type) instead of `entity_load_multiple` In branchee_block/src/Plugin/Block/BrancheeMenuBlock.php
Comment #7
b.ravanbakhshhttp://pareview.sh/pareview/httpsgitdrupalorgsandboxaeotrin2753955git
Comment #8
aeotrinThanks for the comments b.ravanbakhsh. I'll take a look at it. The asterisks in the README are for bolding, not to display as asterisks. Thanks for mentioning it though.
Comment #9
aeotrinSo I looked at the warnings, and they are saying to use dependency injection for the \Drupal calls and the t(), (which i am doing $this->t() as it states I should). The other errors are coming from the library that is being included as a base copy of it (can be overridden as per readme) .
Any recommendations on what more I can do?
Comment #10
b.ravanbakhshFor `t()` ignore those warnings.
For dependency injection warning you can fix it by injecting `menu.link_tree` in your create() and __construct() function then you have
$this->container->get('menu.link_tree')
.use Drupal\Core\Menu\MenuLinkTreeInterface;
For more code styling tips:
in branchee_block/src/Plugin/Block/BrancheeMenuBlock.php
line 69
Consider `return $form;` is in the condition and you need to return array in anycase.
and PHPdoc on top of file should be just before class definition not at first line of file.
PS. if you'd like have a review on my project:
https://www.drupal.org/node/2758935
Comment #11
aeotrinThanks for the help.
Comment #12
icurk CreditAttribution: icurk commentedReview your module with https://pareview.sh/. You will see that you have a lot of coding standards errors, you should use dependency injection in classes etc. I didn't attach because review from pareview.sh because it is really long.
Comment #13
aeotrinThanks @icurk, for some reason those errors were not showing up on my report, I was only getting the Drupal dependency injection as discussed above. I have made the fixes to those, removed the js library that was being included and rather have instructions for a bower install (or libraries override to get the library)
Comment #14
andor.koza CreditAttribution: andor.koza at Studio Present commentedAutomated Review
https://pareview.sh/node/767 Found some warnings and an error, but those aren't big problems.
Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.
Manual Review
BrancheeMenuBlock.php
. So it should not be a problem.Otherwise everything works fine
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #15
apadernoThank you for your contribution!
I updated your account so you can opt into security advisory coverage now.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. 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.
Thanks go the dedicated reviewer(s) as well.
Comment #16
apaderno