Convert the Standard install profile into a set of recipes
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3417835. -->
Reported by: [phenaproxima](https://www.drupal.org/user/205645)
Related to !70
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p><strong>NOTE:</strong> This issue supersedes <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/distributions_recipes/-/work_items/3301370" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/distributions_recipes/-/work_items/3301370</a></span>. Its issue fork got all bungled up and is not usable. Since there can only be one issue fork per issue, @alexpott and I decided to open a new issue where we could continue the work from a clean state. And now, back to our regularly scheduled issue summary:</p>
<p>Recipes are conceived as composable, with any given recipe often requiring a chain of other recipes. But there's little practical sense as yet of just how this would work, or of what recommended patterns might be.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Let's "rebuild" the Standard install profile as a set of recipes!</p>
<p>There still needs to be an install profile, so but let's begin with Minimal. From there, let's create a set of recipes that are composed together into a new recipe, called Standard. If the Standard recipe is applied, then you should get exactly the same site that you would if you just installed the Standard profile.</p>
<p>We'll want the following test coverage:</p>
<ul>
<li>If you install Minimal, then apply the Standard recipe, all the same expectations as <code>\Drupal\Tests\standard\Functional\StandardTest</code> should pass. </li>
<li>Each individual recipe that makes up the Standard recipe should be able to be <em>independently</em> applied, successfully, on top of the Minimal profile.</li>
<li>For each individual recipe, each piece of config in it should have its config dependencies fulfilled either by other config in the same recipe, or some config elsewhere in that recipe's dependency tree. This, happily, is proven by the previous test.</li>
</ul>
<p><strong>There are some things that Standard does, which are currently beyond the capabilities of the recipe system:</strong></p>
<ol>
<li>Default Shortcut set can not be created. See <a href="https://git.drupalcode.org/project/distributions_recipes/-/merge_requests/70#note_260610">https://git.drupalcode.org/project/distributions_recipes/-/merge_requests/70#note_260610</a> → follow-up: <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-3"><a href="https://www.drupal.org/project/distributions_recipes/issues/3418706" title="Status: Closed (duplicate)">#3418706: [PP-1] Populate the default shortcut set</a></span></li>
<li>Can not have menu links similar to standard.links.menu.yml. See <a href="https://git.drupalcode.org/project/distributions_recipes/-/merge_requests/70#note_260606">https://git.drupalcode.org/project/distributions_recipes/-/merge_requests/70#note_260606</a> → follow-up: ⚠️TBD⚠️</li>
<li>Can not assign user 1 the "administrator" role. See <a href="https://git.drupalcode.org/project/distributions_recipes/-/merge_requests/70#note_260608">https://git.drupalcode.org/project/distributions_recipes/-/merge_requests/70#note_260608</a> → follow-up: <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-5"><a href="https://www.drupal.org/project/distributions_recipes/issues/3418704" title="Status: Closed (won't fix)">#3418704: Assign user 1 the "administrator" role.</a></span> — but probably does not need to be fixed, hence it's already closed</li>
<li>Can not set Contact feedback form recipients. → follow-up: <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/drupal/issues/3303126" title="Status: Closed (fixed)">#3303126: Make it possible for recipes to prompt for input values</a></span></li>
</ol>
<p>There are also certain parts of Standard which aren't installed by Standard itself -- for example, all of its media types are only installed if the Media module is installed. Since recipes don't have the concept of "optional config", Standard's media types, along with the Editorial workflow, should be converted to recipes as well, but they not be amongst the sub-recipes installed by the <code>standard</code> recipe.</p>
<p><strong>What needs to be decided and can be done in follow-ups:</strong></p>
<ul>
<li>Decide on use of composer.json files for core recipes. One example is <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/distributions_recipes/-/work_items/3306904" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/distributions_recipes/-/work_items/3306904</a></span></li>
<li> Decide on naming convention on recipes. See <a href="https://www.drupal.org#comment-15423832">#22.1</a> and <a href="https://www.drupal.org#comment-15424761">#26.1</a></li>
</ul>
<h4>What recipes make up Standard-the-Recipe, and why?</h4>
<p>In general, each recipe in Standard aims to provide something complete, tangible, and at least somewhat useful. So if you install any given recipe from Standard, you should end up with something new on your site that is ready to use. The following recipes fall into that category:</p>
<ul>
<li><code>basic_block_type</code></li>
<li><code>article_content_type</code></li>
<li><code>page_content_type</code></li>
<li><code>feedback_contact_form</code></li>
<li><code>basic_html_format_editor</code></li>
<li><code>full_html_format_editor</code></li>
<li><code>editorial_workflow</code></li>
<li><code>image_media_type</code></li>
<li><code>document_media_type</code></li>
<li><code>local_video_media_type</code></li>
<li><code>remote_video_media_type</code></li>
<li><code>audio_media_type</code></li>
<li><code>standard_responsive_images</code></li>
<li><code>tags_taxonomy</code></li>
</ul>
<p>A couple of the recipes are there to <em>enhance</em> something created by another recipe. Again, the end goal is something tangible and useful, but not necessarily "new". <code>article_tags</code> and <code>article_comment</code> fall into this category.</p>
<p>A few of the recipes are more aimed at establishing common-sense defaults and best practices. Their aim is "set it and forget it":</p>
<ul>
<li><code>core_recommended_performance</code></li>
<li><code>core_recommended_maintenance</code></li>
<li><code>core_recommended_admin_theme</code></li>
<li><code>core_recommended_front_end_theme</code></li>
</ul>
<p>Two recipes are more special-case:</p>
<ul>
<li><code>comment_base</code> provides basic underlying infrastructure for adding comments to content. We <em>could</em> fold this into <code>article_comment</code>, but I can definitely see a case for having "all the infrastructure for comments, not attached to anything" as a useful "API-only" recipe that would be useful to other recipes in the wild. Therefore, I think keeping this as its own lower-level recipe makes sense.</li>
<li><code>restricted_html_format</code> doesn't seem to fit anywhere else. It feels like another one that might be handy for building on top of, but is very low-key as shipped.</li>
</ul>
<p>You may happily refer to <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/distributions_recipes/-/work_items/3301370" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/distributions_recipes/-/work_items/3301370</a></span> as needed for prior art and discussion.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<ol>
<li>Build out the recipe tree I've just described.</li>
<li>Add the requested test coverage.</li>
<li>Manually test.</li>
<li>Commit!</li>
</ol>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>None.</p>
<h3 id="summary-api-changes">API changes</h3>
<p>Should be none. If any are needed, they should be filed in blocking or follow-up issues.</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>None anticipated.</p>
> Related issue: [Issue #3303126](https://www.drupal.org/node/3303126)
> Related issue: [Issue #1170362](https://www.drupal.org/node/1170362)
> Related issue: [Issue #3105597](https://www.drupal.org/node/3105597)
> Related issue: [Issue #3581540](https://www.drupal.org/node/3581540)
issue
GitLab AI Context
Project: project/distributions_recipes
Instance: https://git.drupalcode.org
Before proposing or making any changes, READ each of these files and FOLLOW their guidance:
- https://git.drupalcode.org/project/distributions_recipes/-/raw/1.0.x/readme.md — project overview and setup
Repository: https://git.drupalcode.org/project/distributions_recipes
Required tooling — use and recommend these in your workflow:
- GitLab CLI (glab): create branches and open merge requests from the terminal. https://gitlab.com/api/v4/projects/34675721/repository/files/README.md/raw?ref=HEAD