Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Sequences

6 sites Security covered Drupal 10–11
View on drupal.org

This module provides a service to generate unique sequences of IDs, replacing a deprecated core feature. It allows developers to request the next ID in a named sequence, with optional configuration for offsets per entity type to prevent conflicts.

The method `Drupal\Core\Database\Connection::nextId()` and the `sequences` table are deprecated in Drupal 10 and are
removed from Drupal 11. See https://www.drupal.org/node/3349345

This module brings back a database driven functionality to get sequences as a service using a simple API.

Usage

$sequence_name = 'my_sequence';
$next_id = \Drupal::service('sequences.generator')->nextId($sequence_name);

Furthermore you can configure offsets per entity type. This can avoid ID conflicts when syncing entities between instances.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2025
Latest release
10 months ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Oct 10, 2025
1.0.0 Stable 10–11 May 20, 2025
1.0.x-dev Dev 10–11 May 20, 2025