You are here

public function PriceList::setCustomers in Commerce Pricelist 8.2

Sets the customers.

Parameters

\Drupal\user\UserInterface[] $users: The customers.

Return value

$this

Overrides PriceListInterface::setCustomers

1 call to PriceList::setCustomers()
PriceList::setCustomer in src/Entity/PriceList.php
Sets the customer.

File

src/Entity/PriceList.php, line 160

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function setCustomers(array $users) {
  $this
    ->set('customers', $users);
  return $this;
}