You are here

protected function PercentageOffTrait::getPercentage in Commerce Core 8.2

Gets the percentage.

Return value

string The percentage.

3 calls to PercentageOffTrait::getPercentage()
OrderItemPercentageOff::apply in modules/promotion/src/Plugin/Commerce/PromotionOffer/OrderItemPercentageOff.php
Applies the offer to the given entity.
OrderPercentageOff::apply in modules/promotion/src/Plugin/Commerce/PromotionOffer/OrderPercentageOff.php
Applies the offer to the given entity.
PercentageOffTrait::buildConfigurationForm in modules/promotion/src/Plugin/Commerce/PromotionOffer/PercentageOffTrait.php

File

modules/promotion/src/Plugin/Commerce/PromotionOffer/PercentageOffTrait.php, line 85

Class

PercentageOffTrait
Provides common configuration for percentage off offers.

Namespace

Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer

Code

protected function getPercentage() {
  return (string) $this->configuration['percentage'];
}