Skip to content

Commit

Permalink
Changed placeholder from % to @ for email subject
Browse files Browse the repository at this point in the history
  • Loading branch information
vcsvinicius committed Mar 15, 2024
1 parent d83262f commit f3bcc1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public function preRender(EmailInterface $email): void {
}
else {
$site_name = $this->configFactory->get('system.site')->get('name');
$email->setSubject($this->t('Notification from %site_name', [
'%site_name' => $site_name,
$email->setSubject($this->t('Notification from @site_name', [
'@site_name' => $site_name,
], [
'langcode' => $email->getLangcode(),
]));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
];

$variables = [
'%site_name' => \Drupal::config('system.site')->get('name'),
'@site_name' => \Drupal::config('system.site')->get('name'),
];

// Load event invite configuration.
Expand Down Expand Up @@ -281,7 +281,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#theme' => 'invite_email_preview',
'#title' => $this->t('Message'),
'#logo' => $logo,
'#subject' => $this->t('Notification from %site_name', $variables),
'#subject' => $this->t('Notification from @site_name', $variables),
'#body' => $body,
'#helper' => $this->token->replace($invite_config->get('invite_helper'), $params),
];
Expand Down

0 comments on commit f3bcc1b

Please sign in to comment.