You are here

public function PriceListInterface::setCustomer in Commerce Pricelist 8.2

Sets the customer.

Parameters

\Drupal\user\UserInterface $user: The customer.

Return value

$this

Deprecated

in commerce_pricelist:8.x-2.0 and is removed from commerce_pricelist:8.x-3.0. Use $this->setCustomers() instead.

See also

https://www.drupal.org/project/commerce_pricelist/issues/3171289

1 method overrides PriceListInterface::setCustomer()
PriceList::setCustomer in src/Entity/PriceList.php
Sets the customer.

File

src/Entity/PriceListInterface.php, line 71

Class

PriceListInterface
Defines the interface for price lists.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function setCustomer(UserInterface $user);