Drupal is a registered trademark of Dries Buytaert
Views Bootstrap 5.5.2 Minor update available for module views_bootstrap (5.5.2). oEmbed Providers 3.0.0 Major update available for module oembed_providers (3.0.0). MCP Sentinel 2.3.0 Minor update available for module mcp_sentinel (2.3.0). Token Content Access 3.1.3 Minor update available for module tca (3.1.3). Emulsify 7.2.1 Minor update available for theme emulsify (7.2.1). Opensolr Search 4.1.0 Minor update available for module opensolr_search (4.1.0). Audit Chain 1.3.0 Minor update available for module audit_chain (1.3.0). Theme Flip 1.0.1 Minor update available for module theme_flip (1.0.1). oEmbed Providers 2.2.4 Module oembed_providers updated after 7 months of inactivity (2.2.4). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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!

Activity

Total releases
1
First release
Jun 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0-alpha2 Pre-release Jun 17, 2026