You are here

public function ShippingMethodBase::getServices in Commerce Shipping 8.2

Gets the shipping services.

Return value

\Drupal\commerce_shipping\ShippingService[] The shipping services.

Overrides ShippingMethodInterface::getServices

File

src/Plugin/Commerce/ShippingMethod/ShippingMethodBase.php, line 115

Class

ShippingMethodBase
Provides the base class for shipping methods.

Namespace

Drupal\commerce_shipping\Plugin\Commerce\ShippingMethod

Code

public function getServices() {

  // Filter out shipping services disabled by the merchant.
  return array_intersect_key($this->services, array_flip($this->configuration['services']));
}