Overview
The Modifier module defines a system for defining how modifications can be consistently applied to elements on a page. Modifiers work by leveraging the power of the Drupal theming system and abstracting it to a Modifier interface which provides for the application of modifications on elements defined by a selector.
The power of Modifiers comes from being applicable to elements as defined by a selector. This means they can be applied to entities (Nodes, Blocks, Paragraphs, Users, etc), theme regions (header, footer, etc), View Modes (full, teaser, etc), classes in the WYSIWYG and anything you can think of and define.
Modifiers are developed by architects and programmers and used by site builders and editors. They are designed to make site building easy and pleasurable... and fast.
The module is comprised of a number of components which work together:
- A Modifier interface and plugin manager which defines what Modifiers do.
- An internal system which converts field content data into a simple array structure which is used to configure the Modifier instances.
- A hook into entity rendering, allowing for modifiers to attach to entities.
This module is a foundation for two other helpful modules:
- Look Handle collections of Modifiers and apply them on a per page basis.
- Modifiers pack A number of Modifier implementations to get you up can running quickly with useful modifications such as colors, background images, parallax images, background video, shadows, corners and the like.
Documentation
We have a documentation, where you can find quick start instructions and how to implement your own Modifier. Please let us know if you would like to extend some part.
Slack
There is a slack channel for Modifiers.
Maintainers
This module is maintained by developers at Morpht. For more information on the company and our offerings, see morpht.com.
Project information
- Project categories: Content display
156 sites report using this module
- Created by murrayw on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Now compatible with Drupal 11!
Development version: 8.x-1.x-dev updated 12 Jun 2024 at 14:47 UTC







