public function ShippingMethod::getName in Commerce Shipping 8.2
Gets the shipping method name.
Return value
string The shipping method name.
Overrides ShippingMethodInterface::getName
File
- src/
Entity/ ShippingMethod.php, line 132
Class
- ShippingMethod
- Defines the shipping method entity class.
Namespace
Drupal\commerce_shipping\EntityCode
public function getName() {
return $this
->get('name')->value;
}