Allowed formats are in Drupal 10.1 now, add an upgrade path
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3324446. -->
Reported by: [berdir](https://www.drupal.org/user/214652)
Related to !4
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/drupal/issues/784672" title="Status: Closed (fixed)">#784672: Allow text field to enforce a specific text format</a></span> finally landed in core.</p>
<p>As commented there in #299, this module should provide an upgrade path now. I see that D10 compatibility was releases as a new major version, that wasn't actually required, it's fine in regards to BC and semver to increase min version of requirements as long as your own API doesn't change.</p>
<p>It's a little bit awkward now, because for this, it really does make sense to have a new major version. So we have a major version for exactly one minor core version :) The idea is to remove all code related to the allowed formats setting and add an update function that moves existing configuration to the core setting. </p>
<p>For extra awkwardness, not all functionality of this module is in core yet, see <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-13"><a href="https://www.drupal.org/project/drupal/issues/3323007" title="Status: Needs work">#3323007: Add an option to 'hide filter guidelines' on text fields</a></span>, so we can't remove that yet unless we also get that issue into core for 10.1. </p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ol>
<li>Create an upgrade path for a site builder to migrate their allowed formats settings into Drupal core's settings</li>
<li>Remove the allowed formats feature from this contributed module.</li>
<li>Rename the module to <em>Hide format info (former Allowed Formats)</em></li>
<li>Update the project description to <em>Hides info about the selected text format. The 'allowed formats' functionality has been moved in core since Drupal 10.1.0.</em>
</li><li>Update the README.md explaining these changes.</li>
</ol>
<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>
> Related issue: [Issue #3323007](https://www.drupal.org/node/3323007)
issue