You are here

public function EntityTraitManagerInterface::uninstallTrait in Commerce Core 8.2

Uninstalls the given trait for the given entity type and bundle.

Uninstalling a trait removes any fields that the trait provides from the given bundle.

Parameters

\Drupal\commerce\Plugin\Commerce\EntityTrait\EntityTraitInterface $trait: The trait.

string $entity_type_id: The entity type id.

string $bundle: The bundle.

1 method overrides EntityTraitManagerInterface::uninstallTrait()
EntityTraitManager::uninstallTrait in src/EntityTraitManager.php
Uninstalls the given trait for the given entity type and bundle.

File

src/EntityTraitManagerInterface.php, line 79

Class

EntityTraitManagerInterface
Defines the interface for commerce_entity_trait plugin managers.

Namespace

Drupal\commerce

Code

public function uninstallTrait(EntityTraitInterface $trait, $entity_type_id, $bundle);