private function MergeTermsConfirm::setSuccessfullyMergedMessage in Term Merge 8
Sets the successfully merged terms message.
Parameters
int $count: The numner of terms merged.
string $targetName: The name of the target term.
1 call to MergeTermsConfirm::setSuccessfullyMergedMessage()
- MergeTermsConfirm::submitForm in src/
Form/ MergeTermsConfirm.php - Plugin annotation @SuppressWarnings(camelCase);
File
- src/
Form/ MergeTermsConfirm.php, line 242
Class
- MergeTermsConfirm
- Term merge confirm form.
Namespace
Drupal\term_merge\FormCode
private function setSuccessfullyMergedMessage($count, $targetName) {
$arguments = [
'%count' => $count,
'%target' => $targetName,
];
$this
->messenger()
->addStatus($this
->t('Successfully merged %count terms into %target', $arguments));
}