Change record status: 
Project: 
Introduced in branch: 
3.0.x
Introduced in version: 
3.0.0
Description: 

The following plugins now use Attributes.
While annotations are still supported, defining plugins via attributes is strongly recommended since the annotation support will likely be removed when D12 is released.

Annotation class Attribute class
\Drupal\commerce\Annotation\CommerceCondition \Drupal\commerce\Attribute\CommerceCondition
\Drupal\commerce\Annotation\CommerceEntityTrait \Drupal\commerce\Attribute\CommerceEntityTrait
\Drupal\commerce\Annotation\CommerceInlineForm \Drupal\commerce\Attribute\CommerceInlineForm
\Drupal\commerce_checkout\Annotation\CommerceCheckoutFlow \Drupal\commerce_checkout\Attribute\CommerceCheckoutFlow
\Drupal\commerce_checkout\Annotation\CommerceCheckoutPane \Drupal\commerce_checkout\Attribute\CommerceCheckoutPane
\Drupal\commerce_number_pattern\Annotation\CommerceNumberPattern \Drupal\commerce_number_pattern\Attribute\CommerceNumberPattern
\Drupal\commerce_payment\Annotation\CommercePaymentGateway Drupal\commerce_payment\Attribute\CommercePaymentGateway
\Drupal\commerce_payment\Annotation\CommercePaymentMethodType Drupal\commerce_payment\Attribute\CommercePaymentMethodType
\Drupal\commerce_payment\Annotation\CommercePaymentType Drupal\commerce_payment\Attribute\CommercePaymentType
\Drupal\commerce_promotion\Annotation\CommercePromotionOffer Drupal\commerce_promotion\Attribute\CommercePromotionOffer
\Drupal\commerce_tax\Annotation\CommerceTaxNumberType Drupal\commerce_tax\Attribute\CommerceTaxNumberType
\Drupal\commerce_tax\Annotation\CommerceTaxType Drupal\commerce_tax\Attribute\CommerceTaxType

Update for Commerce 4.0.0

The Commerce plugin annotation classes are deprecated in commerce:4.0.0 and will be removed in commerce:5.0.0. Annotated plugins keep working throughout 4.x. On Drupal 11.3 and newer, core already triggers a deprecation for each plugin discovered through an annotation. Convert your plugins to the matching attribute class (Drupal\{module}\Attribute\{Name}). See #3638821.

Impacts: 
Module developers