Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add and configure trash module for soft deleteing content #835

Open
wants to merge 1 commit into
base: 11.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,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 @@ -218,6 +218,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
Loading