Wrong module name limit

Created on 6 September 2024, 3 months ago
Updated 8 September 2024, 3 months ago

Problem/Motivation

The 32 char limit for module name in HucCompilerPass is wrong. It should be 50 (or none at all).

      preg_match_all('/^Drupal\\\\(?<moduleName>[a-z_0-9]{1,32})\\\\.*$/m', $className, $matches, PREG_SET_ORDER);
      $moduleName = $matches[0]['moduleName'] ?? throw new \Exception(sprintf('Could not determine module name from class %s', $className));

https://www.drupal.org/node/2014073

Steps to reproduce

Have a module with >32 char name and implement a hux hook.

In HuxCompilerPass.php line 77:
                                                                                                                                
  Could not determine module name from class Drupal\translation_bliss_config_language_select\Hooks\ConfigLanguageSelectorHooks  
                                                        

Proposed resolution

Fix it.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.7

Component

Code

Created by

🇩🇪Germany geek-merlin Freiburg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024