Using the Breakpoint module

The Breakpoint module provides a method for creating media query breakpoint definitions within Drupal. These can be used by other components, such as the responsive image and toolbar modules, to make Drupal responsive.

Breakpoints are a type of plugin that can be defined in a module's or theme's breakpoints.yml in its directory. In this recipe, we will define three different breakpoints under a custom group.

Note

Breakpoints are defined solely in YAML files from installed modules and themes and are not configurable through the user interface.

Getting ready

Ensure that the Breakpoint module is enabled. If you have used the standard Drupal installation, the module is enabled.

This recipe assumes that you have a custom module ...

Get Drupal 8: Enterprise Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.