You are here

public function TermMergerInterface::mergeIntoNewTerm in Term Merge 8

Merges two or more terms into a new term.

Parameters

\Drupal\taxonomy\TermInterface[] $termsToMerge: The terms to merge.

string $newTermLabel: The label of the new term.

Return value

\Drupal\taxonomy\TermInterface The newly created term.

2 methods override TermMergerInterface::mergeIntoNewTerm()
TermMerger::mergeIntoNewTerm in src/TermMerger.php
Merges two or more terms into a new term.
TermMergerDummy::mergeIntoNewTerm in tests/src/Kernel/TestDoubles/TermMergerDummy.php
Merges two or more terms into a new term.

File

src/TermMergerInterface.php, line 23

Class

TermMergerInterface
Provides an interface for a term merger service.

Namespace

Drupal\term_merge

Code

public function mergeIntoNewTerm(array $termsToMerge, $newTermLabel);