Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Tempstore +

74 sites Security covered
View on drupal.org

Tempstore+ enhances Drupal's temporary storage system, allowing modules to customize storage behavior without conflicts. It provides specific strategies for different needs, including enabling Edit Mode on pages outside of Layout Builder for the + Suite page builder. This makes tempstore functionality more flexible and extensible for various Drupal site building scenarios.

Tempstore+ makes Edit Mode work on non-layout builder pages for the + Suite page builder.

▶ Watch an introduction to +Suite

Overview

Tempstore + extends Drupal's temporary storage system with a flexible strategy pattern, enabling multiple modules to customize tempstore behavior without conflicts.

Problem

Drupal's core LayoutTempstoreRepository is designed to handle Layout Builder section storage. However, other modules and systems need different tempstore behaviors. Without tempstore_plus, each module must override layout_builder.tempstore_repository directly, which:

  • Conflicts when multiple modules try to override the same service
  • Complex inheritance chains that are difficult to maintain
  • Challenges supporting optional module dependencies

Solution

Tempstore + implements the Strategy Pattern for tempstore operations:

  • Strategies implement TempstoreStrategyInterface and define logic for specific
    storage types
  • Tagged services are automatically discovered and registered with configurable
    priority
  • Priority-based selection ensures the right strategy handles each tempstore operation

Features

  • Workspace Awareness: Built-in support for workspace isolation via
    WorkspaceKeyTrait
  • Extensible: Add custom strategies by creating a class and tagging it as a service
  • No Conflicts: Multiple modules can provide strategies without overriding each other
  • Backward Compatible: Works alongside modules that haven't adopted the pattern yet

Included Strategies

  • LayoutTempstoreStrategy: Handles Layout Builder section storage with workspace
    awareness
  • EntityTempstoreStrategy: Adds tempstore functionality for non-Layout Builder pages

Activity

Total releases
6
First release
Nov 2025
Latest release
4 months ago
Releases (12 mo)
6 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.4 Stable Mar 2, 2026
1.0.3 Stable Feb 13, 2026
1.0.2 Stable Jan 6, 2026
1.0.1 Stable Nov 29, 2025
1.0.0 Stable Nov 29, 2025
1.0.x-dev Dev Nov 29, 2025