hook name should be as module name to prevent name classes if similar module is installed. Using "detect_mobile" as hook instead of "mobile_detect_twig_extensions".

Comments

sarathkm created an issue. See original summary.

sarathkm’s picture

Title: HOOK naming convention not followed » HOOK/Namespace naming convention not followed
Issue tags: +Namespace
sarathkm’s picture

sarathkm’s picture

Status: Active » Needs review
mahipal46’s picture

Assigned: Unassigned » mahipal46
mahipal46’s picture

Assigned: mahipal46 » Unassigned
Status: Needs review » Reviewed & tested by the community

Patch looks good to me working as Expected.

uditrawat’s picture

Priority: Normal » Critical
Status: Reviewed & tested by the community » Active
Issue tags: +depricated
StatusFileSize
new133.39 KB

There are still lots of improvement exist in the module.
Below patch include
1. Fix code spacing according to https://www.drupal.org/docs/develop/standards/coding-standards
2. Remove deprecated function Twig_Function_Function
3. Namespace changes.

nonom’s picture

I'm sorry i was renaming the module didn't committed the right release.

I'm fixing that issues and commiting your patch.

Really thanks for contributing!

  • nonom committed 6414fd5 on 8.x-1.x authored by uditrawat
    Issue #3074818 by sarathkm, uditrawat, mahipal46: HOOK/Namespace naming...
nonom’s picture

Assigned: Unassigned » nonom
Issue tags: -depricated +deprecated
nonom’s picture

Status: Active » Needs review
nonom’s picture

Status: Needs review » Fixed
nonom’s picture

Status: Fixed » Closed (fixed)
nonom’s picture

Status: Closed (fixed) » Fixed
nonom’s picture

Status: Fixed » Closed (fixed)