Implement OO hooks
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3542810. --> Reported by: [ultimike](https://www.drupal.org/user/51132) Related to !29 >>> <p>We should modernize the hooks implemented in markdown_easy.module as modern OO hooks. </p> <p>For more info:</p> <ol> <li><a href="https://www.drupal.org/node/3442349">https://www.drupal.org/node/3442349</a></li> <li><a href="https://www.hashbangcode.com/article/drupal-11-object-oriented-hooks-and-hook-service-classes">https://www.hashbangcode.com/article/drupal-11-object-oriented-hooks-and-hook-service-classes</a></li> <li><a href="https://www.drupaleasy.com/blogs/ultimike/2024/10/why-drupal-module-developers-should-be-excited-about-object-oriented-hooks">https://www.drupaleasy.com/blogs/ultimike/2024/10/why-drupal-module-developers-should-be-excited-about-object-oriented-hooks</a></li> </ol> <p>We need to be sure to include the backwards compatibility stuff.</p> <p>Important! we will also need to increase the minimum version of the module to 10.1.0 - from <a href="https://www.drupal.org/node/3442349:">https://www.drupal.org/node/3442349:</a></p> <blockquote><p>This approach only supports Drupal 10.1 and later because in 10.1 aliases were added to core services for autowiring.</p></blockquote>
issue