public function TermsMergedEvent::__construct in Term Merge 8
Constructor.
Parameters
array $sourceTerms: Terms to merge.
\Drupal\taxonomy\Entity\Term $targetTerm: Target Term.
File
- src/
TermsMergedEvent.php, line 35
Class
- TermsMergedEvent
- Event used to notify subscribers that terms were merged.
Namespace
Drupal\term_mergeCode
public function __construct(array $sourceTerms, Term $targetTerm) {
$this->sourceTerms = $sourceTerms;
$this->targetTerm = $targetTerm;
}