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.
Comments
Comment #3
nedjo