You are here

public function ShippingMethodBase::getLabel in Commerce Shipping 8.2

Gets the shipping method label.

Return value

mixed The shipping method label.

Overrides ShippingMethodInterface::getLabel

File

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

Class

ShippingMethodBase
Provides the base class for shipping methods.

Namespace

Drupal\commerce_shipping\Plugin\Commerce\ShippingMethod

Code

public function getLabel() {
  return (string) $this->pluginDefinition['label'];
}