Bundle classes are regarded by some as the most underrated Drupal inclusion in recent times. You can read more about them at Introducing bundle classes (change record).
This module has two uses:
In your project
Don't actually install this module.
- Create your own custom module named
bundle_classes - Never worry about it conflicting with a contributed module
- Always find your bundle classes in the same place across projects
As a learning tool
At the moment this module has one demonstration capability:
- Use composer to include this module and its dependency in a fresh Drupal project
- Enable the module and the included demonstration theme
- Create an Article node, then edit it
- Watch the "Last updated" markup change with each edit
Prior to bundle classes this behaviour would typically have been achieved using a preprocess function. Note that there are no global functions in this module.
We aim to add more examples over time. MRs welcome!
Supporting organizations:
Project information
- Project categories: Developer tools
- Created by darvanen on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
1.0.0-alpha2
released 17 June 2026
Works with Drupal: ^10.5 || ^11.2 || ^12
Install:
Development version: 1.x-dev updated 17 Jun 2026 at 00:02 UTC
