patternlab-php-core
patternlab-php-core copied to clipboard
Add ability to strip pattern type category prefixes from main menu nav
This just cleans up the main menu navigation if you have to prefix your pattern type categories.
Pattern type category prefixes can be defined in config.yml as an array named "prefixes" containing strings of prefixes. For example if your pattern types are called, "theme1_atoms", "theme1_molecules", etc. you can add to your config.yml:
prefixes
- "theme1_"
...then theme1_ will not appear in the main menu navigation of pattern lab.
Needing to prefix the top level pattern type directories is a common use case when working with multiple pattern lab instances integrated with a single Drupal 8 installation for example.