Answer the question
In order to leave comments, you need to log in
How to display drupal 8 blocks?
With a little delay , I'm switching from 7 to 8 :)
When developing on drupal, I abandoned the idea of regions, most often using one region (Content), I collect pages mainly on templates, because. in most cases, there are 10-15 custom layouts per site and using regions in this case, in my opinion, is not the best (flexible) idea.
Question: how to display blocks in templates correctly ?
An example of what I want to achieve:
<div class="projects">
<h2>Проекты</h2>
{{ вывод_конфигурируемого_блока }}
</div>
Answer the question
In order to leave comments, you need to log in
upd. Problem solved, this is how it works:
{{ drupal_entity('block', 'phone', null, null, false) }}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question