Twig Tweak/Plugin Blocks support

Created on 16 October 2022, about 2 years ago
Updated 18 February 2023, almost 2 years ago

Problem/Motivation

Since blocks can also be rendered from a twig template β†’ , we should be able to load the block using ajax by passing the settings to the drupal_block function.

Actually if I call a block passing the settings brought by the module, it doesn't load using ajax :

{{ drupal_block('my_block_id', { 'block_ajax': { 'is_ajax': 1, 'max_age': '0', 'show_spinner': 0, 'placeholder': '', 'ajax_defaults': { 'method': 'POST', 'timeout': '10000', 'others': { 'async': 'async', 'cache': 0 } } } }) }}
✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡«πŸ‡·France MacSim

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