Implement getSetupData() in the AI provider
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3566598. --> Reported by: [mxr576](https://www.drupal.org/user/315522) Related to !38 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>otherwise <code>setupAiProvider</code> config action cannot configure the module.</p> <p>This is because this logic in <code>\Drupal\ai\Plugin\ConfigAction\SetupAiProvider::apply() </code></p> <pre>&nbsp;&nbsp;&nbsp; $setupData = [];<br>&nbsp;&nbsp;&nbsp; if ($provider-&gt;getSetupData()) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $setupData = $provider-&gt;getSetupData();<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; if (!empty($setupData['key_config_name'])) {}</pre><p>Needs backport to 1.2.x as well.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue