Part of the UI ecosystem · 47 projects
This module automatically discovers UI patterns defined in a Pattern Lab instance and makes them available for use within Drupal. It simplifies the integration by eliminating the need for manual configuration files, allowing Pattern Lab patterns to be recognized from module and theme template directories or defined Twig namespaces.
The UI Patterns Pattern Lab module automatically discovers patterns defined in a Pattern Lab instance and makes them available to be used in Drupal as UI Patterns.
This module will recognize Pattern Lab patterns in any active module or theme's /templates directory, along with any paths defined as Twig Namespaces in your theme by the Component Libraries module. After enabling this module (which will also enable the dependencies ui_patterns and ui_patterns_library) and clearing your cache, patterns should be visible at /patterns and available to use with any of the UI Patterns integration modules.
While it can improve the the workflow, this module is not required to use UI Patterns with Pattern Lab. It eliminates the need to manually create ui_patterns.yaml files that in many cases share quite a bit of overlap with pattern specific data files in Pattern Lab. If eliminating that duplication isn't important to you or wouldn't improve your workflow, then this module probably isn't for you.
This project would not exist without the work of Antonio De Marco who maintains the UI Patterns module and Pierre Dureau who created the UI Patterns Fractal integration that this project is based on.
Ongoing development for this theme is taking place in the following github repository. Issues and pull requests are primarily managed there.
Ask your assistant about UI Patterns Pattern Lab
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the UI ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.x-dev | Dev | 8–10 | Sep 10, 2023 |