You are here

public function CommerceBundleEntityBase::setTraits in Commerce Core 8.2

Sets the traits.

Parameters

array $traits: The trait plugin IDs.

Return value

$this

Overrides CommerceBundleEntityInterface::setTraits

File

src/Entity/CommerceBundleEntityBase.php, line 50

Class

CommerceBundleEntityBase
Provides the base class for Commerce bundle entities.

Namespace

Drupal\commerce\Entity

Code

public function setTraits(array $traits) {
  $this->traits = $traits;
  return $this;
}