Issue #3584775: Remove AiContextItemType and make ai_context_item bundleless
Removes the single hardcoded ai_context_item bundle and converts the entity to bundleless, now that Scheduler 2.3.0 stores settings for entity types without bundles (#3355087).
What changed
- Entity: drop the bundle from
AiContextItem; deleteAiContextItemTypeand its form. - Publishing defaults:
default_status/new_revisionmove toai_context.settings, edited on a newAiContextItemSettingsFormat/admin/ai/context/settings/itemsthat links out to Scheduler's own no-bundle settings form. - Scheduler: settings live in
scheduler.no_bundle_entity_type_settings.ai_context_item(seeded inhook_install, removed on uninstall). Requiresdrupal/scheduler:^2.3. - Content moderation / config: workflow bundle, form/view displays, and language content settings repointed from
defaultto theai_context_itembundle. - Update path:
ai_context_update_10007migrates publishing defaults, Scheduler settings, the workflow, and displays, then drops thetypecolumn.
Verification
- phpcs (Drupal, DrupalPractice): clean
- phpstan (module config): clean
- Unit: 127 pass
- Kernel: 281 pass
Functional tests require a live web server (not run locally). The update hook's entity-conversion step (dropping the bundle key + type column) should be exercised with drush updatedb against a populated database before release.
Refs #3586250 (bundle discussion).