AmazeeLabs / silverback-mono

Silverback Monorepo. Central hub for our open source packages and tooling.
https://silverback.netlify.app
8 stars 7 forks source link

SLB-321: refactor block mutator to use the plugin system #1519

Closed chindris closed 4 months ago

chindris commented 4 months ago

Package(s) involved

amazeelabs/silverback_gutenberg

Description of changes

The block mutator feature has been extended to use the Drupal plugin system, so that it is much easier and cleaner to alter Gutenberg blocks (in most cases due to content references inside blocks) when the content gets exported / imported by the default content module.

The media uuid to id and id to uuid mutator classes have been migrated to use the new plugin system.

Related Issue(s)

Refactor BlockMutator

Originally, this was needed in Add automated tests for access restricted queries to be able to properly export / import blocks which had taxonomy term references.

How has this been tested?

Unit tests were already implemented for the default content normalizer class.