Install

Works with Drupal: ^9.4 || ^10.2 || ^11

Using dev releases is not recommended, except for testing.

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 426.88 KB
MD5: 23e9c97cc315872fc763eb6377839f86
SHA-1: e03cd10eeb06859198f859b373d474321cd48b1c
SHA-256: ab60ae3bc51e4a78d84ebf3a72b4235c710bf7527fe8ddd1b4e14ff91009ec88
Download zip 591.61 KB
MD5: c3442c5d96c0a23d297391efed6c5ae0
SHA-1: 3db5bed2c1364d6862d6cfc4952dc0fc87d3c175
SHA-256: 34df654d958123a06e752f386557ba17719ce559770ffbf75f897e3a3bfa956d

Release notes

Summary
-------

Development snapshot of the 2.27.x branch, including the new JSON import
pipeline for special_night nodes.

What's included in this dev snapshot
------------------------------------

- JSON import for Special Nights. Two Drush commands are now available:

- drush bhpas:check
Validates the configuration and prerequisites without writing to the
database.

- drush bhpas:import
Creates or updates special_night nodes from JSON files, matching on
the (field_nights.value, field_room.target_id) pair.

- Configuration form. A new collapsible fieldset "Import from JSON" in the
Special Nights alterator settings exposes the source directory,
nights/adults, channel discounts and imported node status.

- Sample fixture. A reference JSON file is available at
tests/fixtures/special_night_example.json, with a format reference in
tests/fixtures/README.md.

Upgrade notes
-------------

No database updates are required. After updating the codebase:

drush cr
drush bhpas:check

If you were already using a previous import implementation, open the
"Import from JSON" fieldset and re-save the form to migrate the
configuration keys to the new names (import_discount_primary,
import_discount_secondary).

Warning
-------

This is a development release. It is generated automatically from the tip
of the 2.27.x branch and may contain incomplete features or regressions.
Do not use it on production sites without prior testing.

Full changelog
--------------

- Added: bhpas:check and bhpas:import Drush commands.
- Added: "Import from JSON" fieldset in the Special Nights form.
- Added: tests/fixtures/special_night_example.json sample fixture.
- Changed: module strings translated to English.
- Changed: core_version_requirement updated to ^10 || ^11 || ^12.
- Changed: Drush commands moved to src/Drush/Commands/ (Drush 13).
- Removed: drush.services.yml.
- Fixed: configuration name resolution in Drush commands.

Created by: afagioli
Created on: 25 Oct 2026 at 07:50 UTC
Last updated: 25 Oct 2026 at 14:05 UTC
New features

Other releases