public function TermsMergedEventSubscriber::onTermMerge in Term Merge 8
Code that is executed when the event is triggered.
File
- tests/
term_merge_test_events/ src/ EventSubscriber/ TermsMergedEventSubscriber.php, line 18
Class
- TermsMergedEventSubscriber
- This event subscriber prints a message to the screen when some terms are merged.
Namespace
Drupal\term_merge_test_events\EventSubscriberCode
public function onTermMerge(TermsMergedEvent $event) {
\Drupal::messenger()
->addMessage('The TermsMergedEvent was triggered.');
}