You are here

public function CommerceBundleEntityInterface::setTraits in Commerce Core 8.2

Sets the traits.

Parameters

array $traits: The trait plugin IDs.

Return value

$this

1 method overrides CommerceBundleEntityInterface::setTraits()
CommerceBundleEntityBase::setTraits in src/Entity/CommerceBundleEntityBase.php
Sets the traits.

File

src/Entity/CommerceBundleEntityInterface.php, line 32

Class

CommerceBundleEntityInterface
Provides the interface for Commerce bundle entities.

Namespace

Drupal\commerce\Entity

Code

public function setTraits(array $traits);