Convert plugin annotations to attributes
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3512886. --> Reported by: [sonvir249](https://www.drupal.org/user/3225171) Related to !38 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Drupal Core is currently moving from using Doctrine annotations for plugin discovery to using PHP 8 attributes, so we should do the same thing both for the plugin types we define and the plugins we implement. (Not all Core plugin types have been converted yet, though, so need to wait for the latter.)</p> <p>See the change records:<br> <a href="https://www.drupal.org/node/3395575">Plugin implementations should use PHP attributes instead of annotations</a><br> <a href="https://www.drupal.org/node/3395582">Plugin types should use PHP attributes instead of annotations</a></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <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>
issue