Twig Block Versioning in Shopware PhpStorm Plugin

Talk big database, solutions, and innovations for businesses.
Post Reply
Mitu100@
Posts: 1313
Joined: Tue Jan 07, 2025 4:29 am

Twig Block Versioning in Shopware PhpStorm Plugin

Post by Mitu100@ »

We recently released a new version of the Shopware plugin for PhpStorm. This latest version includes a significant new feature: Twig block versioning. So what is this feature, and how can it help you?

Why/what is Twig block versioning?
Let's say you have extended the base.html.twig and overwrote the base_body_skip_to_content block like so:

Now, when you update Shopware, the base.html.twig file might change, but we still see our overwritten block, which is fine. But what if Shopware fundamentally changes things in the israel telegram screening block or introduces accessibility improvements? We might want to update our block to reflect these changes. But this is difficult, as we have to manually compare every block we have overwritten with the original block.

This is where the Twig block versioning comes in. With this feature, we can now see the version of the block we have overwritten and the version we have extended. This way we can easily see if our block is outdated and needs to be updated.
Post Reply