Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Libraries API 4.2.1 — Minor update available for module libraries (4.2.1). Release: Menu Link Attributes 8.x-1.10 — Minor update available for module menu_link_attributes (8.x-1.10). Release: Menu Link Attributes 8.x-1.9 — Minor update available for module menu_link_attributes (8.x-1.9). Release: Taxonomy Menu 8.x-3.9 — Minor update available for module taxonomy_menu (8.x-3.9). Release: Menu Item Extras 3.2.0 — Minor update available for module menu_item_extras (3.2.0). Release: Layout Paragraphs 2.1.4 — Minor update available for module layout_paragraphs (2.1.4). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.11 — Minor update available for module photoswipe (5.0.11). Module Revived: Libraries API 4.2.0 — Module libraries updated after 11 months of inactivity (4.2.0). Security Coverage: Open Y Branch Selector — Module openy_branch_selector now has official Drupal security advisory coverage.

Adds Form API support for the Range module.

Features

Adds the following Form API render elements:

  • Here, answer the following questions: What is the basic functionality? What unique features does enabling this project add? When and why would someone use this module? What use cases are there?

Includes theme suggestions for --range form elements and input elements.

Post-Installation

Once enabled, add to your forms as follows:

$form['my_range'] = [
  '#default_value' => [
          'from' => 1,
          'to' => 1,
        ],
        '#from_label' => $this->t('Min'),
        '#max' => 1000,
        '#min' => 1,
        '#title' => $this->t('Range'),
        '#to_label' => $this->t('Max'),
        '#type' => 'range_integer',
  ],
];
$my_range = $form_state->getValue('my_range');
$from_val = $my_range['from'];
$to_val = $my_range['to'];

Additional Requirements

Supporting this Module

Sponsor me at https://github.com/sponsors/cybtachyon

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
1
Tracked since
Oct 2026
Latest release
2 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
0.0.1-alpha1 Pre-release 11 Oct 9, 2026