This module allows you to use the value of a field (specifically list or list_string types) as a CSS class for field groups. This enables dynamic styling of field groups based on their content.
Field Group as Class module is a formatter for field_group.
Description
This formatter get the node field value (list or list_string field_types)
to display it to the field_group class.
Drupal 10–11
Ask your assistant about Field Group as Class
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- Field Group
- field Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.1.0 | Stable | 10–11 | Oct 3, 2026 | ||
| 2.1.0-alpha1 | Pre-release | 10–11 | Jan 30, 2026 | ||
| 2.0.x-dev | Dev | 10–11 | Jan 6, 2026 | ||
| 2.0.0 | Stable | 8–10 | Apr 3, 2023 |