You are here

public function EntityTraitManagerInterface::canUninstallTrait in Commerce Core 8.2

Checks whether the given trait can be uninstalled.

A trait can only be uninstalled if the fields it provides contain no data.

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::canUninstallTrait()
EntityTraitManager::canUninstallTrait in src/EntityTraitManager.php
Checks whether the given trait can be uninstalled.

File

src/EntityTraitManagerInterface.php, line 64

Class

EntityTraitManagerInterface
Defines the interface for commerce_entity_trait plugin managers.

Namespace

Drupal\commerce

Code

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