Skip to content

Commit

Permalink
Add and configure trash module for soft deleteing content
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jan 8, 2025
1 parent 9c7bb1c commit 0e408db
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
"drupal/taxonomy_entity_index": "^1.8",
"drupal/taxonomy_menu": "^3.5",
"drupal/token_or": "^2.0",
"drupal/trash": "^3.0",
"drupal/ui_patterns": "^1.0",
"drupal/ultimate_cron": "^2.0@beta",
"drupal/view_unpublished": "^1.0",
Expand Down
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ module:
token: 0
token_or: 0
toolbar: 0
trash: 0
typed_data: 0
ui_patterns: 0
ui_patterns_ds: 0
Expand Down
7 changes: 7 additions & 0 deletions config/sync/trash.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_core:
default_config_hash: 6RYN2q1x9xeZY4gCN37ZqpEgHrLUQKEscWRd9UovdL0
enabled_entity_types:
node: { }
auto_purge:
enabled: true
after: '30 days'
17 changes: 17 additions & 0 deletions config/sync/ultimate_cron.job.trash_cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
uuid: e669d5e4-9136-4ade-8b67-12e03ee08043
langcode: en
status: true
dependencies:
module:
- trash
title: 'Default cron handler'
id: trash_cron
weight: 0
module: trash
callback: 'trash#cron'
scheduler:
id: simple
launcher:
id: serial
logger:
id: database

0 comments on commit 0e408db

Please sign in to comment.