Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

OGCB Trash Group

No security coverage Maintenance fixes only 9 sites

Part of the Ogcb ecosystem · 5 projects

This module integrates Drupal's Trash functionality with the Group module. When a group, a related entity, or a group relationship is trashed or restored, this module automatically handles the corresponding actions for all linked items. It ensures that trashing a group also trashes its entities and relationships, and vice versa, while also preventing infinite loops.

Overview

This module was developed as part of the Open Government Community Builder (OGCB) project and is tailored to its needs. It can be used independently but may not cover every use case outside of OGCB.

Integrates the Trash module with the Group module. When an entity, group, or group relationship is trashed or restored, all related items follow automatically.

Scope: This module is built for 1-to-1 group relationships (one entity belongs to exactly one group). While the code iterates over all relationships in case there are multiple, the bidirectional cascade logic is not designed or tested for true 1-to-N scenarios.

Features

  • Group cascade: Trashing a group trashes all its relationships and their related entities. Restoring the group restores everything.
  • Entity / relationship cascade: Trashing an entity trashes its group relationships and vice versa. Restore works in both directions.
  • Delete confirmation form: Replaces the default "This action cannot be undone" text on group relationship delete forms with the same trash-aware description used by the Trash module.
  • Loop prevention: A shared re-entrancy guard prevents infinite cascades between entities and relationships.

Requirements

Configuration

For the cascade to work, enable trash for the relevant entity type bundles and their corresponding group relationship bundles at Administration → Configuration → Content → Trash.

No further configuration is needed. The hooks activate automatically once the module is enabled.

Drupal 11 · not 10

Ask your assistant about OGCB Trash Group

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Mar 2026
Latest release
4 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.1 Stable 11 Jun 22, 2026
1.0.0 Stable 10–11 Jun 11, 2026
1.0.0-alpha2 Pre-release 10–11 Apr 8, 2026
1.0.0-alpha1 Pre-release 10–11 Mar 10, 2026