public function PromotionOfferBase::setConfiguration in Commerce Core 8.2
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurableInterface::setConfiguration
1 call to PromotionOfferBase::setConfiguration()
- PromotionOfferBase::__construct in modules/
promotion/ src/ Plugin/ Commerce/ PromotionOffer/ PromotionOfferBase.php - Constructs a new PromotionOfferBase object.
File
- modules/
promotion/ src/ Plugin/ Commerce/ PromotionOffer/ PromotionOfferBase.php, line 74
Class
- PromotionOfferBase
- Provides the base class for offers.
Namespace
Drupal\commerce_promotion\Plugin\Commerce\PromotionOfferCode
public function setConfiguration(array $configuration) {
$this->configuration = NestedArray::mergeDeep($this
->defaultConfiguration(), $configuration);
return $this;
}