Twig Tweak Incompatible with Acquia Site Studio

Created on 1 September 2021, about 3 years ago
Updated 29 February 2024, 9 months ago

Problem/Motivation

Twig Tweak breaks all blocks added through Acquia's Site Studio/Cohesion toolset because the drupal_block function defined in Site Studio's TwigExtension is overridden by twig_tweak's drupal_block function. See https://support.acquia.com/hc/en-us/articles/1500005736022-Error-This-bl...

Steps to reproduce

  1. Install Site Studio
  2. Install Twig Tweak
  3. Add a block to the Site Studio interface
  4. Receive "Block Broken or Missing" error message

Proposed resolution

Unsure if the Twig Tweak team should take any action or if the Acquia Site Studio team should take any action. Opening this ticket as a place to provide direction for anyone else with this issue.

I have provided a patch that renames the Twig Tweak drupal_block function as fail-safe for the time being. That way we can continue to leverage both toolsets and the drupal_block function in both projects.

Instead of twig_tweak using drupal_block it will use drupal_block_tweak instead.

πŸ› Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States thhafner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024