Convert procedural hook implementations to new OOP hooks system
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3533695. -->
Reported by: [claudiu.cristea](https://www.drupal.org/user/56348)
Related to !8 !7
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Hook implementations are procedural</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Move as OOP hook but keep the D10 support (LegacyHook attribute)</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>None.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>None.</p>
<h3 id="summary-api-changes">API changes</h3>
<p>None.</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>None.</p>
issue