Remove dependency from toolbar module
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3531236. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
Related to !61
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>This is a follow-up issue from <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/drupal_cms/-/work_items/3530945" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/drupal_cms/-/work_items/3530945</a></span>. We should try and remove the dependency from the toolbar module if possible.</p>
<p>When navigation is enabled, the toolbar module should be disabled.</p>
<p>When navigation is disabled, the toolbar module should be enabled.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Use hooks for installed and uninstalled modules as well as for requirements handling.</p>
> Related issue: [Issue #3530945](https://www.drupal.org/node/3530945)
issue