You are here

public function PriceList::setCustomerRoles in Commerce Pricelist 8.2

Sets the customer roles.

Parameters

string[] $rids: The role IDs.

Return value

$this

Overrides PriceListInterface::setCustomerRoles

File

src/Entity/PriceList.php, line 197

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function setCustomerRoles(array $rids) {
  $this
    ->set('customer_roles', $rids);
  return $this;
}