Skip to content

Commit

Permalink
Add possibility to custom path twig template to render
Browse files Browse the repository at this point in the history
  • Loading branch information
Xorg committed Aug 31, 2023
1 parent 349f604 commit 7cad031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notify/EmailCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public function asEmailMessage(EmailRecipientInterface $recipient, string $trans

// try to fund way to be able to have custom path to template
// $option->getTemplate() == "default" ; null ; "xxxx/xxxxx/default.html.twig"
$value = $option->getTemplate();
$Template = match (true) {
$value = $option->getTemplate();
$Template = match (true) {
str_contains($value, '/') => $value,
default => $this->neoxTemplate['emails'] . "/" . ($option->getTemplate() ? : 'default'). '.html.twig',
};
Expand Down

0 comments on commit 7cad031

Please sign in to comment.