Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/promotion/src/Annotation/PromotionOffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion modules/promotion/src/PromotionOfferManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down