You are here

public function PriceListInterface::getCustomer in Commerce Pricelist 8.2

Gets the customer.

Return value

\Drupal\user\UserInterface|null The customer user entity, or NULL if the price list is not limited to a specific customer.

Deprecated

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

See also

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

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

File

src/Entity/PriceListInterface.php, line 47

Class

PriceListInterface
Defines the interface for price lists.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function getCustomer();