site = $site; } /** * @copydoc Variable::descriptions() */ public static function descriptions(): array { return [ self::SITE_TITLE => __('emailTemplate.variable.site.siteTitle'), self::SITE_CONTACT => __('emailTemplate.variable.site.siteContactName'), self::SITE_EMAIL => __('emailTemplate.variable.site.siteContactEmail'), self::SITE_SIGNATURE => __('emailTemplate.variable.site.siteSignature'), ]; } /** * @copydoc Variable::values() */ public function values(string $locale): array { return [ self::SITE_TITLE => htmlspecialchars($this->site->getLocalizedData('title', $locale)), self::SITE_CONTACT => htmlspecialchars($this->site->getLocalizedData('contactName', $locale)), self::SITE_EMAIL => htmlspecialchars($this->site->getLocalizedData('contactEmail', $locale)), self::SITE_SIGNATURE => '

' . htmlspecialchars($this->site->getLocalizedData('contactName', $locale)) . '
' . htmlspecialchars($this->site->getLocalizedData('title', $locale)) . '

', ]; } }