You are here

public function EntityTraitManagerInterface::detectConflicts in Commerce Core 8.2

Detects conflicts between the given trait and the installed traits.

A conflict exists if the given trait has a field with a name that's already taken by a field from an installed trait.

Parameters

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

\Drupal\commerce\Plugin\Commerce\EntityTrait\EntityTraitInterface[] $installed_traits: The installed traits.

1 method overrides EntityTraitManagerInterface::detectConflicts()
EntityTraitManager::detectConflicts in src/EntityTraitManager.php
Detects conflicts between the given trait and the installed traits.

File

src/EntityTraitManagerInterface.php, line 35

Class

EntityTraitManagerInterface
Defines the interface for commerce_entity_trait plugin managers.

Namespace

Drupal\commerce

Code

public function detectConflicts(EntityTraitInterface $trait, array $installed_traits);