Install
Works with Drupal: ^11.2 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Third beta of the Sites suite's core. Run the updates (drush updb, or drush deploy): several services changed their arguments, and nine post updates rename, merge and materialise stored settings.
Upgrade together. sites 1.0.0-beta3 conflicts with sites_simple_sitemap < 1.0.0-beta3 and sites_shield < 1.0.0-beta2; update the satellites in the same composer update.
Behaviour changes.
- An environment's list settings (hostname aliases, …) replace the site's list instead of being appended to it. An update writes the lists each environment showed so far into its own rows, so nothing changes on the page.
- A main site's people (content members and role holders) count as the people of the sub-sites it runs, when the sub-site is "Run by the main site's people": preview, own-people checks and scoped views follow.
- A sub-site may have a hostname of its own; under its main site's host it needs its prefix. A site type says whether its sites are main sites, sub-sites or both.
- One Sites list at /admin/sites that scopes itself to the account, grouped by main site, with a compact view and recently opened sites.
- A site switch started before negotiation leaves the current site unready instead of ready with the hub; a Fiber started under a switch runs as the request's site.
API changes for custom code. Removed without deprecation (all Sites projects are updated in this round):
SitePluginManagerInterface::getSiteIdsByHostname(),getResolvableHostnames(),getSiteIdsByPrefix(),getResolvablePrefixes(),getSubSiteIds(): useDrupal\sites\Service\SiteHostIndexInterface(servicesites.host_lookup):siteIdsForHost(),candidateSiteIds(),isEnabled(),subSiteIds().SiteEntityAccessInterface::participatedSites(),SiteRoleManagerInterface::getRoleSiteIdsForUser(),UserSiteAccessInterface::reachableSiteOptions()andreachableSiteIds(): useSiteMembershipInterface::participatedSiteIds().SiteProxy::queryAlter()is gone.
New public API: SiteInterface::getSiteEntity(), SiteSettingsInterface::keys(), PreviewFormState (sites_preview), SiteAspectBulkFormInterface, and collection routes a view's page display replaces. Code tagged @internal changes without notice; satellites can guard against it with InternalSitesApiGuardTrait.
Performance. One cached host index for hostnames, prefixes and sub-sites; the hub list asks only the sites an account is assigned to; alias strings, listing aliases and setting definitions read once per request instead of per site.
Fixes. Language prefixes of a site's own URL (#3622253), preview switcher language fallback (#3622252), links to other sites stay absolute, hreflang no longer builds every site's settings, preview keeps Layout Builder and module admin routes.