You are here

public function ShippingMethod::setName in Commerce Shipping 8.2

Sets the shipping method name.

Parameters

string $name: The shipping method name.

Return value

$this

Overrides ShippingMethodInterface::setName

File

src/Entity/ShippingMethod.php, line 139

Class

ShippingMethod
Defines the shipping method entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}