class TermMergerDummy in Term Merge 8
Dummy TermMerger class used for testing purposes.
Hierarchy
- class \Drupal\Tests\term_merge\Kernel\TestDoubles\TermMergerDummy implements TermMergerInterface
Expanded class hierarchy of TermMergerDummy
1 file declares its use of TermMergerDummy
- MergeTermsConfirmTest.php in tests/
src/ Kernel/ Form/ MergeTermsConfirmTest.php
File
- tests/
src/ Kernel/ TestDoubles/ TermMergerDummy.php, line 12
Namespace
Drupal\Tests\term_merge\Kernel\TestDoublesView source
class TermMergerDummy implements TermMergerInterface {
/**
* {@inheritdoc}
*/
public function mergeIntoNewTerm(array $termsToMerge, $newTermLabel) {
return new Term([], 'taxonomy_term');
}
/**
* {@inheritdoc}
*/
public function mergeIntoTerm(array $termsToMerge, TermInterface $targetTerm) {
// Deliberately left empty because dummies don't do anything.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TermMergerDummy:: |
public | function |
Merges two or more terms into a new term. Overrides TermMergerInterface:: |
1 |
TermMergerDummy:: |
public | function |
Merges one or more terms into an existing term. Overrides TermMergerInterface:: |
1 |