Drupal is a registered trademark of Dries Buytaert
Emulsify Tools 2.1.2 Minor update available for module emulsify_tools (2.1.2). AI (Artificial Intelligence) 1.5.0-alpha2 New alpha version released for module ai (1.5.0-alpha2). AI (Artificial Intelligence) 1.5.0-alpha1 First alpha version released for module ai (1.5.0-alpha1). Easy Encryption 1.0.4 Minor update available for module easy_encryption (1.0.4). Extra Paragraph Types (EPT): Micromodal 2.0.1 Minor update available for module ept_micromodal (2.0.1). Extra Paragraph Types (EPT): Timeline 2.0.1 Minor update available for module ept_timeline (2.0.1). Emulsify 7.1.1 Minor update available for theme emulsify (7.1.1). Media Embed Code 1.0.2 Minor update available for module media_embed_code (1.0.2). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs. Extra Paragraph Types (EPT): Images 2.0.0 Module ept_images updated after 10 months of inactivity (2.0.0).

This module automatically unpublishes, reveals, or deletes content entities when a specified date field on them has passed. It is configurable, works with any content entity type, and utilizes Symfony Messenger for efficient scheduling.

SM Entity Scheduler hides (unpublishes), reveals, or deletes content entities once a date field on them has passed — driven by configuration and run on the Symfony Messenger Scheduler engine (sm + sm_scheduler).

Unlike form-driven schedulers, it triggers off an existing date field already on the entity (for example one populated by an import), re-evaluated on every run, and works with any content entity type — including Commerce product variations.

Features

  • Config-driven "schedule" entities: target entity type and bundles, the date field to watch, semantics, enforcement strategy, cron expression and batch size.
  • Pluggable enforcement strategies: status (unpublish via the core published flag), visibility_field (a dedicated boolean plus an entity-access veto) and delete — add your own.
  • A shared, reusable expiry-rule service (date-granular, UTC) so imports and other code apply identical "is it past?" semantics.
  • Messenger-native runner: a recurring scan fans expired entities out as batched messages to a consumer, so it scales to large catalogs without cron timeouts.

Post-Installation

Enable the module, add (or reuse) a date field on the target entity bundle, then create a schedule config entity pointing at that field and choosing an enforcement strategy. Run a Symfony Messenger consumer (for example bin/sm messenger:consume) so the recurring scan and batches are processed.

Additional Requirements

  • Drupal 11.3+ (uses plugin constructor autowiring).
  • Symfony Messenger + Drupal (sm) and Message Scheduler (sm_scheduler).
  • A running Messenger consumer.

Similar projects

Unlike Scheduler (editor-set publish/unpublish dates per node) or Scheduled Transitions (content-moderation revisions), this module triggers off an existing arbitrary date field on any entity type, re-evaluates it every run, and runs on Symfony Messenger rather than hook_cron.

Activity

Total releases
7
First release
Jun 2026
Latest release
3 weeks ago
Releases (12 mo)
7 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.1 Stable Jun 25, 2026
1.0.0 Stable Jun 23, 2026
1.0.0-alpha6 Pre-release Jun 8, 2026
1.0.0-alpha4 Pre-release Jun 8, 2026
1.0.0-alpha3 Pre-release Jun 8, 2026
1.0.0-alpha2 Pre-release Jun 8, 2026
1.0.0-alpha1 Pre-release Jun 5, 2026