Search by tags

Adding Regions to a Theme

Adding regions to a theme requires:

- Adding region meta-data to your file - Editing your page.html.twig file and printing the new regions

Disable Drupal 8 caching during development

When you are developing a module or a theme you have to clear Drupal's cache (render cache, dynamic page cache, Twig cache) very often to see the changes being applied. You can disable caching for development.

CSS file organization (for Drupal 8)

File Structure

Rulesets should be grouped into logical files that enforce the separation of concerns within the CSS, that can be aggregated efficiently and that can be easily overridden by themers.

Twig operators

Put one (and only one) space before and after the following operators: comparison operators (==!=<>>=<=), math operators (+,-

Sample blackbox block

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas non porta odio, id mattis erat.

Nam sed tincidunt eros. Donec a venenatis odio, vitae commodo sem. Vivamus ullamcorper pellentesque erat, in adipiscing tortor scelerisque sit amet. Nulla pulvinar urna magna. Vivamus a ipsum lorem. Etiam adipiscing pulvinar lorem.