Closed (fixed)
Project:
Sites
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2026 at 09:40 UTC
Updated:
7 Jul 2026 at 20:05 UTC
Jump to comment: Most recent
The sites SiteSetting plugin (Sites) has no title setting, yet sites_group's label-sync (#3591238: Set site title from group label) reads settings.sites.title. Add a first-class Title field to the site settings form so a site has a human name independent of any form's label field.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
hydra commentedComment #5
hydra commentedRemoved the entity dependency from the title setting. The form no longer reaches into callback_object->getEntity():
The Title field's default now comes from the saved title setting (getSetting('title')) rather than the entity label.
The "new site" check that gates id generation now derives from the locked id setting being empty, instead of $entity->isNew().
Trade-off: the Title no longer auto-prefills from the entity label on a new site — it starts empty and is filled by the (already required) field. Unit tests updated to drop the entity mocks and drive behavior off saved settings. phpstan/phpcs/cspell/phpunit all green locally.
Comment #7
hydra commented