You are here

public function CommerceBundleEntityInterface::hasTrait in Commerce Core 8.2

Gets whether the bundle has the given trait.

Parameters

string $trait: The trait plugin ID.

1 method overrides CommerceBundleEntityInterface::hasTrait()
CommerceBundleEntityBase::hasTrait in src/Entity/CommerceBundleEntityBase.php
Gets whether the bundle has the given trait.

File

src/Entity/CommerceBundleEntityInterface.php, line 40

Class

CommerceBundleEntityInterface
Provides the interface for Commerce bundle entities.

Namespace

Drupal\commerce\Entity

Code

public function hasTrait($trait);