string
$enLangId,
?string
$deLangId,
string
$getHtmlTemplateEn,
string
$getPlainTemplateEn,
string
$getHtmlTemplateDe,
string
$getPlainTemplateDe ): void
{ $templateId =
$this->
fetchSystemMailTemplateIdFromType($connection,
$mailTemplateType);
if ($templateId !== null
) { // updating available entities of mail template
$availableEntities =
$this->
fetchSystemMailTemplateAvailableEntitiesFromType($connection,
$mailTemplateType);
if (!
isset($availableEntities['editOrderUrl'
])) { $availableEntities['editOrderUrl'
] = null;
$sqlStatement = 'UPDATE `mail_template_type` SET `available_entities` = :availableEntities WHERE `technical_name` = :mailTemplateType AND `updated_at` IS NULL';
$connection->
executeStatement($sqlStatement,
['availableEntities' =>
json_encode($availableEntities, \JSON_THROW_ON_ERROR
), 'mailTemplateType' =>
$mailTemplateType]);
} $this->
updateMailTemplateTranslation( $connection,
$templateId,
$enLangId,
$getHtmlTemplateEn,