interface OrderItemPromotionOfferInterface in Commerce Core 8.2
Defines the interface for order item offers.
Order item offers have conditions, which are used to determine which order items should be passed to the offer.
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer\PromotionOfferInterface
- interface \Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer\OrderItemPromotionOfferInterface
- interface \Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer\PromotionOfferInterface
Expanded class hierarchy of OrderItemPromotionOfferInterface
All classes that implement OrderItemPromotionOfferInterface
4 files declare their use of OrderItemPromotionOfferInterface
- commerce_promotion.post_update.php in modules/
promotion/ commerce_promotion.post_update.php - Post update functions for Promotion.
- OrderItemQuantity.php in modules/
promotion/ src/ Plugin/ Commerce/ Condition/ OrderItemQuantity.php - OrderItemQuantityTest.php in modules/
promotion/ tests/ src/ Unit/ Plugin/ Commerce/ Condition/ OrderItemQuantityTest.php - Promotion.php in modules/
promotion/ src/ Entity/ Promotion.php
File
- modules/
promotion/ src/ Plugin/ Commerce/ PromotionOffer/ OrderItemPromotionOfferInterface.php, line 11
Namespace
Drupal\commerce_promotion\Plugin\Commerce\PromotionOfferView source
interface OrderItemPromotionOfferInterface extends PromotionOfferInterface {
/**
* Gets the conditions.
*
* @return \Drupal\commerce\Plugin\Commerce\Condition\ConditionInterface[]
* The conditions.
*/
public function getConditions();
/**
* Sets the conditions.
*
* @param \Drupal\commerce\Plugin\Commerce\Condition\ConditionInterface[] $conditions
* The conditions.
*
* @return $this
*/
public function setConditions(array $conditions);
/**
* Gets the condition operator.
*
* @return string
* The condition operator. Possible values: AND, OR.
*/
public function getConditionOperator();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
OrderItemPromotionOfferInterface:: |
public | function | Gets the condition operator. | 1 |
OrderItemPromotionOfferInterface:: |
public | function | Gets the conditions. | 1 |
OrderItemPromotionOfferInterface:: |
public | function | Sets the conditions. | 1 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
PromotionOfferInterface:: |
public | function | Applies the offer to the given entity. | 6 |
PromotionOfferInterface:: |
public | function | Allows an offer to clean up any modifications done to the given entity. | 1 |
PromotionOfferInterface:: |
public | function | Gets the offer entity type ID. | 1 |