Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
API page: https://api.drupal.org/api/drupal/core%21modules%21block%21templates%21b...
Twig Templating, Wondering if there should be able to call the region the block is in, order to change markup depending on which region that block is in for example?
Comments
Comment #2
benjamin.merkley CreditAttribution: benjamin.merkley at Portage CyberTech commentedComment #3
benjamin.merkley CreditAttribution: benjamin.merkley at Portage CyberTech commentedComment #4
tim.plunkettThe block should have no knowledge of the region it is placed in.
We removed this in #1968360: Remove per-region block markup.
Comment #5
star-szrIndeed, thanks.