Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Charts 5.2.4 Minor update available for module charts (5.2.4). Release: Tagify 2.0.3 Minor update available for module tagify (2.0.3). Release: Tagify 1.2.54 Minor update available for module tagify (1.2.54). Release: GoogleTag Manager 2.0.5 Minor update available for module gtm (2.0.5). Release: GoogleTag Manager 2.0.4 Minor update available for module gtm (2.0.4). Release: Synapse 2.0.7 Minor update available for module synapse (2.0.7). Release: Contact Mail 2.0.8 Minor update available for module contact_mail (2.0.8). Release: SynPay - Sber Ykassa Robokassa 2.0.12 Minor update available for module synpay (2.0.12). Usage Milestone: Easy Email Module easy_email crossed 10,000 active installs. Module Revived: Workbench Access 2.0.5 Module workbench_access updated after 17 months of inactivity (2.0.5).

Bundle Classes

1 sites Security covered
View on drupal.org

This module provides a framework for organizing and managing entity type and bundle specific classes, offering a cleaner alternative to preprocess functions for custom theming and logic. It encourages developers to implement bundle classes within their own custom modules rather than installing this contributed one directly.

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.

  1. Create your own custom module named bundle_classes
  2. Never worry about it conflicting with a contributed module
  3. Always find your bundle classes in the same place across projects

As a learning tool

At the moment this module has one demonstration capability:

  1. Use composer to include this module and its dependency in a fresh Drupal project
  2. Enable the module and the included demonstration theme
  3. Create an Article node, then edit it
  4. 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!

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jun 2026
Latest release
2 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0-alpha2 Pre-release 10–11 Jun 17, 2026