- Issue created by @arif.zisu
- ๐ฎ๐ณIndia arif.zisu Kolkata
style tag eliminated while twig render . I have already tried below approached but it is not working for me.
What does โeliminatedโ mean, technically?
Are you sure caching isnโt involved here?
- ๐ฎ๐ณIndia arif.zisu Kolkata
config/development/settings --> I enabled development mode
For any support here we need a complete explanation of your implementation.
- ๐ฎ๐ณIndia arif.zisu Kolkata
I have custom block . Block return #theme which mapped with test.html.twig
inside test.html.twig wrote above html - ๐ฎ๐ณIndia arif.zisu Kolkata
Got solution The problem is
Actually problem happened with #markup
return html like
$hml = '<div class="test" style="color: red; font-size: 16px;"> </div>'; #(real scenario this html came from twig ) return [ '#markup' => '<div class="pane ">'.$html.'</div>', ];
Solution :
return [ '#type' => 'inline_template', '#template' => '<div class="pane ">'.$html.'</div>' ];
https://drupal.stackexchange.com/questions/289647/add-inline-style-to-re...
- First commit to issue fork.