You are here

public function PriceList::setName in Commerce Pricelist 8

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

Sets the price list name.

Parameters

string $name: The price list name.

Return value

\Drupal\commerce_pricelist\Entity\PriceListInterface The called price list entity.

Overrides PriceListInterface::setName

File

src/Entity/PriceList.php, line 96

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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