You are here

public function PriceList::setName in Commerce Pricelist 8.2

Same name and namespace in other branches
  1. 8 src/Entity/PriceList.php \Drupal\commerce_pricelist\Entity\PriceList::setName()

Sets the price list name.

Parameters

string $name: The price list name.

Return value

$this

Overrides PriceListInterface::setName

File

src/Entity/PriceList.php, line 87

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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