Install

Works with Drupal: ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 22.67 KB
MD5: cf34cbc4252feeaad850791b5a3fad07
SHA-1: 32cd671061d8bb1f695308fd88451b2a4bc4c6cd
SHA-256: 6cd8be005b05871f9276b660fdf189d52d75f5f04d9c1567ba69bc2e377e13d3
Download zip 35.08 KB
MD5: d3a41ad114f8bc8d5aedf98c7043d8d0
SHA-1: 087c2bba0682fb1ee69d9fd6548f96ddd771bfc0
SHA-256: 764db2d1bcdffb19c45a68e9dd7427eea1c921bfdd6262d95fc5f235646e7c38

Release notes

Fix: Content-type specific hooks can skip over a subsite homepage (https://git.drupalcode.org/project/localgov_subsites_extras/-/work_items...)

localgov_subsites_extras_follow_field() would previously follow a field (e.g. localgov_services_parent) even when the current node was already a subsite root type. This meant that in some configurations, the method that determines the current subsite could skip over a subsite root. The function now checks whether the node is a subsite type before following the field, and returns early if so.

Additionally, SubsiteService::isSubsiteType() has been made public so it can be used in alter hooks. It's now used in the hooks this module provides for LocalGov Drupal content types to stop the same issue happening in them.

Created by: rupertj
Created on: 4 Jun 2026 at 11:18 UTC
Last updated: 4 Jun 2026 at 11:19 UTC
Bug fixes

Other releases