You are here

public function PriceListInterface::getCustomerId in Commerce Pricelist 8.2

Gets the customer ID.

Return value

int|null The customer ID, 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::getCustomerId()
PriceList::getCustomerId in src/Entity/PriceList.php
Gets the customer ID.

File

src/Entity/PriceListInterface.php, line 95

Class

PriceListInterface
Defines the interface for price lists.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function getCustomerId();