public function TermMergerInterface::mergeIntoTerm in Term Merge 8
Merges one or more terms into an existing term.
Parameters
array $termsToMerge: The terms to merge.
\Drupal\taxonomy\TermInterface $targetTerm: The term to merge them into.
2 methods override TermMergerInterface::mergeIntoTerm()
- TermMerger::mergeIntoTerm in src/
TermMerger.php - Merges one or more terms into an existing term.
- TermMergerDummy::mergeIntoTerm in tests/
src/ Kernel/ TestDoubles/ TermMergerDummy.php - Merges one or more terms into an existing term.
File
- src/
TermMergerInterface.php, line 33
Class
- TermMergerInterface
- Provides an interface for a term merger service.
Namespace
Drupal\term_mergeCode
public function mergeIntoTerm(array $termsToMerge, TermInterface $targetTerm);