Describe your bug or feature request.
As of Drupal 10.2.0, new Plugin implementations should use PHP attributes. Core already migrated field formatters, field types and field widgets to attributes (See https://www.drupal.org/docs/drupal-apis/plugin-api/attribute-based-plugins for more information).
We should support that from Commerce 3, which now requires D10.3 minimum.
We need to define new attributes for PaymentGateway, PaymentMethodType, PaymentType, TaxType, PromotionOffer etc...
We should still support annotations but eventually drop annotation support at the end of the Commerce 3 cycle so Commerce 4 can drop support and work on Drupal 12.
Issue fork commerce-3463795
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jsacksick commentedI started by defining TaxType and TaxNumberType attributes... But now I'm wondering... Perhaps it makes sense to prefix our attributes (just like our annotations, by Commerce, to be consistent with what was done for annotations...)
So TaxType would become CommerceTaxType for example.
Comment #5
jsacksick commented