#3586470 "Make API explorer work with Symfony platform and legacy providers"
Description
Closes #3586470
Makes ai_api_explorer (and any other consumer of AiProviderFormHelper) work with the new AiPlatform-backed providers while
keeping legacy AiProvider plugins fully supported during the migration window.
The MR also does some small UI-changes (menu links) and names legacy AI providers legacy in the UI, to avoid confusion.
Changes
AiProviderPluginManager::getProvidersForOperationType()now returns both kinds in one listing:- Legacy
AiProviderplugins (bare-id keys, e.g.echoai) — label prefixed withLegacy:so dropdowns can disambiguate at a glance
- Legacy
AiProviderFormHelper::getAiProvidersOptions()switched fromgetDefinitions()(legacy-only) togetProvidersForOperationType(), so the explorer dropdown finally lists both. Same change benefits every consumer ofgenerateAiProvidersForm().ai.links.menu.yml— addedentity.ai_platform.collection("AI Platforms") under "AI Infrastructure"; renamed the legacy entry to "AI Legacy Providers".
Testing instructions
- install API explorer and ai_test modules
- Test both EchoAI and Legacy EchoAI providers work
Checklist
- I have linked the related issue in the MR title or description
- I have performed a self-review of my own code
- I have added or updated tests, or explained in the description why this change is not covered by tests
- I have updated documentation for any new or changed functionality
- I have written testing instructions and verified them locally
- I have noted any required post-merge steps (config imports, cache rebuilds, manual changes)
- This MR contains no breaking API or hook changes, or they are explicitly documented in the description
AI Compliance
Note
Check the one that best describes your usage, or leave all unchecked if AI was not significantly used.
-
AI Assisted Code
Mainly written by a human; AI used for autocomplete or partial generation under full human supervision. -
AI Generated Code
Mainly generated by AI, reviewed and approved by a human before this MR was created. -
Vibe Coded
Generated by AI and only functionally reviewed before this MR was created.