protected function ShipmentPromotionOfferBase::getShippingMethodUuids in Commerce Shipping 8.2
Gets the configured shipping method UUIDs.
Return value
array The shipping method UUIDs.
2 calls to ShipmentPromotionOfferBase::getShippingMethodUuids()
- ShipmentPromotionOfferBase::appliesToShipment in src/
Plugin/ Commerce/ PromotionOffer/ ShipmentPromotionOfferBase.php - Checks whether the promotion can be applied to the given shipment.
- ShipmentPromotionOfferBase::buildConfigurationForm in src/
Plugin/ Commerce/ PromotionOffer/ ShipmentPromotionOfferBase.php - Form constructor.
File
- src/
Plugin/ Commerce/ PromotionOffer/ ShipmentPromotionOfferBase.php, line 174
Class
- ShipmentPromotionOfferBase
- Provides the base class for shipment offers.
Namespace
Drupal\commerce_shipping\Plugin\Commerce\PromotionOfferCode
protected function getShippingMethodUuids() {
return array_column($this->configuration['shipping_methods'], 'shipping_method');
}