Correct error in "Develop a third party module" docs
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3524658. -->
Reported by: [jofitz](https://www.drupal.org/user/2617663)
Related to !605
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>There is an error in the second code block in the "Making simple provider/model selection available" section of the "Develop a third party module" documentation.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>See <a href="https://project.pages.drupalcode.org/ai/developers/develop_third_party_module/#making-simple-providermodel-selection-available">https://project.pages.drupalcode.org/ai/developers/develop_third_party_module/#making-simple-providermodel-selection-available</a></p>
<div class="codeblock">
<pre><span style="color: #000000"><span style="color: #0000BB"><?php<br>$ai_provider </span><span style="color: #007700">= \</span><span style="color: #0000BB">Drupal</span><span style="color: #007700">::</span><span style="color: #0000BB">service</span><span style="color: #007700">(</span><span style="color: #DD0000">'ai_provider'</span><span style="color: #007700">);<br></span><span style="color: #0000BB">$provider_model </span><span style="color: #007700">= </span><span style="color: #0000BB">$ai_provider</span><span style="color: #007700">->\</span><span style="color: #0000BB">Drupal</span><span style="color: #007700">::</span><span style="color: #0000BB">service</span><span style="color: #007700">(</span><span style="color: #DD0000">'ai_provider'</span><span style="color: #007700">);<br></span><span style="color: #0000BB">?></span></span></pre></div>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>In the context of the first codeblock in this section, I believe the second line should be:</p>
<div class="codeblock">
<pre><span style="color: #000000"><span style="color: #0000BB"><?php<br>$provider_model </span><span style="color: #007700">= </span><span style="color: #0000BB">$config</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #DD0000">'provider_model'</span><span style="color: #007700">);<br></span><span style="color: #0000BB">?></span></span></pre></div>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Make the correction</p>
issue