You are here

public function TermMergerDummy::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.

Overrides TermMergerInterface::mergeIntoNewTerm

1 method overrides TermMergerDummy::mergeIntoNewTerm()
TermMergerMock::mergeIntoNewTerm in tests/src/Kernel/TestDoubles/TermMergerMock.php
Merges two or more terms into a new term.

File

tests/src/Kernel/TestDoubles/TermMergerDummy.php, line 17

Class

TermMergerDummy
Dummy TermMerger class used for testing purposes.

Namespace

Drupal\Tests\term_merge\Kernel\TestDoubles

Code

public function mergeIntoNewTerm(array $termsToMerge, $newTermLabel) {
  return new Term([], 'taxonomy_term');
}