Add cshs widget support to ClassificationOptionsSelect FieldWidgetAction
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3581662. --> Reported by: [petar_basic](https://www.drupal.org/user/3626336) Related to !1354 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>New feature - adding cshs widget support<br> <strong>Short Description: </strong>[One-line issue summary for stakeholders]<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The `ClassificationOptionsSelect` FieldWidgetAction only supports `options_select` and `chosen_select` widgets. Fields using the `cshs` (Client-side Hierarchical Select) widget don't get an AI classification button, even though cshs is a common choice for hierarchical taxonomy fields.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add `'cshs'` to the `widget_types` array in the `ClassificationOptionsSelect` plugin attribute. The cshs widget creates a `target_id` sub-element, same as options_select and chosen_select, so it's fully compatible.</p> <p>Follows the same pattern as chosen_select support added in #3546465.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3> <h3 id="summary-ai-usage">AI usage (if applicable)</h3> <p>[x] AI Assisted Issue<br> This issue was generated with AI assistance, but was reviewed and refined by the creator.</p> <p>[ ] AI Assisted Code<br> This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p> <p>[ ] AI Generated Code<br> This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p> <p>[ ] Vibe Coded<br> This code was generated by an AI and has only been functionally tested.</p>
issue