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!

Supporting organizations: 

Project information

Releases