Problem/Motivation

In various cases it can be useful to style differently depending on the region a block is in. For example, a menu block might be styled as a navbar in a region where it will be displayed horizontally and as a menu where it will be displayed vertically.

Proposed resolution

  • In hook_preprocess_block(), add a region property.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

nedjo created an issue. See original summary.

  • nedjo committed 0a4e564 on 8.x-1.x
    Issue #2909404 by nedjo: Pass region to block templates
    
nedjo’s picture

Title: Pass region and orientation to block templates » Pass region to block templates
Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.