Install
Works with Drupal: ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
The Patternkit Beta 5 release focuses on module clean-up to improve maintainability, improvement to the editorial experience by speeding up pattern form load times, and improving the developer experience by providing tools and configuration options to ease developer workflows.
For content editors, complex patterns including many references sometimes take a long time to load the form while those references are loaded via AJAX. The Beta 5 release includes two new options to streamline this: behind the scenes, any locally hosted patterns are flattened into a single schema to remove the need for any AJAX requests at all, and a new option is available in settings to cache requested schemas client-side to speed up form loading for patterns with any references off-site. In testing with some particularly nested patterns, load times for the form showed a decrease as much as 97% over loading the same pattern form with the Patternkit Beta 4 release.
For developers, the Beta 5 release includes a host of new Drush commands are available for inspection into patterns the system knows about. There are also now options available for disabling and bypassing caching mechanisms used in Patternkit to speed up local development workflows. Finally, there are a collection of new services available to support these new features and introducing new ways to load and use patterns.
Contributors (13)
BLadwin, JatinGupta40, Munavijayalakshmi, akshaydalvi212, alanmoreira, anoopsingh92, krisahil, lucassc, mariohernandez, rpayanm, slucero, staceroni, tauanygb
Changelog
Issues: 12 issues resolved.
Changes since 9.1.0-beta4:
Bug
- #3300014 by mariohernandez, rpayanm: WYSIWYG does not work
- #3302719 by krisahil: Multiple CKEditor instances can cause config collisions
- #3300762 by rpayanm: Deprecated function: Return type of rewind(), next(), seek() should either be compatible with ArrayIterator's functions
- #3268970 by krisahil: Fetching schemas takes very long time
- #3297114 by slucero, staceroni: URL Tokens Fail Validation in URI Format String Properties
- #3307170 by slucero, mariohernandez: Cache tags aren't persisted for placed patterns and blocks
- #3307383 by slucero, staceroni: Block Form Fails on Content Type Layout Builder Page
Feature
- #3304567 by slucero, krisahil: Add Drush Commands for Pattern Inspection
- #3297124 by slucero, krisahil: Flatten Schema References During Schema Loading
- #3306679 by slucero, BLadwin: Add ability to disable pattern cache for active development
Misc
- Add a test trait for loading schema data from fixture files.
- Updates tidelift path
- Add unit testing for PatternDiscoveryCollector.
- Break down SchemaHelper::getCompositionSchema() method.
- Remove object casting from SchemaHelper since this is done in a preprocessor.
- Fix error-handling for SchemaIterator::getChildren().
- Fix regex for namespaced schema parsing.
- Refactor ref provider unit test to support entity storage mocking.
- Fix mislabeled variables breaking library deprecation warnings.
- Fix undefined variable testing for library version setting.
- Misc. PHPCS and PHPStan cleanup.