Install

Works with Drupal: ^9

Using Composer to manage Drupal site dependencies

Alternative installation files

Download patternkit-9.1.0-beta5.tar.gztar.gz 1.41 MB
MD5: 8c7f6fd9607ed22bf3ea8199ec22c96a
SHA-1: ee2bbe8aba9632b239abe3cb007e8e1b5aefc5b7
SHA-256: 077ff27637f6622867de29629e1c5ba622f27016f1d64b6070d60aeb571af5c3
Download patternkit-9.1.0-beta5.zipzip 1.66 MB
MD5: 526283736945f15e316a95df26eb9f1a
SHA-1: 1dd08620eac459b515c521e758e0abeae7f32dab
SHA-256: 376b5dc2e66688e4f1c569af35ab3775c78ecd36b926d51f19d10595ccf783b1

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.

Task

  • #3299960 by anoopsingh92, lucassc, slucero, akshaydalvi212, alanmoreira, Munavijayalakshmi, JatinGupta40, tauanygb: $this->t() should be used instead of t()
  • #3300299 by slucero: Replace Static Method Calls with Dependency Injection
Created by: slucero
Created on: 8 Sep 2022 at 19:27 UTC
Last updated: 8 Sep 2022 at 19:27 UTC
Bug fixes
New features

Other releases