diff --git a/modules/promotion/src/Annotation/PromotionOffer.php b/modules/promotion/src/Annotation/PromotionOffer.php index 0af7f6a958..19695f7bfb 100644 --- a/modules/promotion/src/Annotation/PromotionOffer.php +++ b/modules/promotion/src/Annotation/PromotionOffer.php @@ -7,11 +7,11 @@ /** * Defines the promotion offer plugin annotation object. * - * Plugin namespace: Plugin\Commerce\PromotionOffer. + * Plugin namespace: Plugin\Commerce\CommercePromotionOffer. * * @Annotation */ -class PromotionOffer extends Plugin { +class CommercePromotionOffer extends Plugin { /** * The plugin ID. diff --git a/modules/promotion/src/Plugin/Commerce/PromotionOffer/OrderPercentageOff.php b/modules/promotion/src/Plugin/Commerce/PromotionOffer/OrderPercentageOff.php index bda76ef666..f7aa7161cb 100644 --- a/modules/promotion/src/Plugin/Commerce/PromotionOffer/OrderPercentageOff.php +++ b/modules/promotion/src/Plugin/Commerce/PromotionOffer/OrderPercentageOff.php @@ -5,7 +5,7 @@ /** * Provides a 'Order: Percentage off' condition. * - * @PromotionOffer( + * @CommercePromotionOffer( * id = "commerce_promotion_order_percentage_off", * label = @Translation("Percentage off"), * target_entity_type = "commerce_order", diff --git a/modules/promotion/src/Plugin/Commerce/PromotionOffer/ProductPercentageOff.php b/modules/promotion/src/Plugin/Commerce/PromotionOffer/ProductPercentageOff.php index 22cc39101e..7e5665dbc3 100644 --- a/modules/promotion/src/Plugin/Commerce/PromotionOffer/ProductPercentageOff.php +++ b/modules/promotion/src/Plugin/Commerce/PromotionOffer/ProductPercentageOff.php @@ -5,7 +5,7 @@ /** * Provides a 'Product: Percentage off' condition. * - * @PromotionOffer( + * @CommercePromotionOffer( * id = "commerce_promotion_product_percentage_off", * label = @Translation("Percentage off"), * target_entity_type = "commerce_order_item", diff --git a/modules/promotion/src/PromotionOfferManager.php b/modules/promotion/src/PromotionOfferManager.php index 6d225bf686..c4660ba13e 100644 --- a/modules/promotion/src/PromotionOfferManager.php +++ b/modules/promotion/src/PromotionOfferManager.php @@ -39,7 +39,7 @@ class PromotionOfferManager extends DefaultPluginManager implements Categorizing * The entity type handler. */ public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager) { - parent::__construct('Plugin/Commerce/PromotionOffer', $namespaces, $module_handler, 'Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer\PromotionOfferInterface', 'Drupal\commerce_promotion\Annotation\PromotionOffer'); + parent::__construct('Plugin/Commerce/PromotionOffer', $namespaces, $module_handler, 'Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer\PromotionOfferInterface', 'Drupal\commerce_promotion\Annotation\CommercePromotionOffer'); $this->alterInfo('commerce_promotion_offer_info'); $this->setCacheBackend($cache_backend, 'commerce_promotion_offer_plugins');