This project is not covered by Drupal’s security advisory policy.
This module helps integrating the miyagi pattern library with your drupal installation.
What is miyagi
miyagi is a component development tool for JavaScript templating engines. More info here
Installation
Install the module as usual, all dependencies are handled by composer.
Dependencies
ui_patterns_librarycomponents
Usage
There is nothing special. The module registers every found miyagi-pattern found in
twig namespaces exposed by the components-module. You can view a list of patterns
at /patterns. Please have a look at the UI-Patterns documentation on how to work
with UI Patterns.
Requirements/ Limitations
- The implementation requires that your miyagi pattern has a schema. The module supports all other files if available like info, mocks and readmes.
- The current implementation supports only yaml-files for structured data like schema, mocks or info-files
- The folder name of the pattern is transformed into its id. So pattern
elements/imageis available under the IDelements_image - The
$render-directive is not supported. - The concept of variants in miyagi and in UI Patterns are not compatible, miyagis variants are only supported for mock-data.
- Only the active theme is currently supported
- Mixing this module with other library-modules like ui_patterns_patternlab might lead to errors and is not tested.
Input validation
As miyagi patterns define a JSON-schema you can instruct the module to validate
pattern input against this schema. Add the following line to your settings.php and miyagi willl throw an exception when the validation fails:
$settings['miyagi_validate_input'] = TRUE;
Project information
Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projectsObsolete
Use of this project is deprecated.- Project categories: Integrations
- Ecosystem: UI Patterns (SDC in Drupal UI)
- Created by stmh on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
