From 33470017ab81f6b2d6231d1ceaeed4bb7dc5702e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 3 Sep 2017 21:26:58 +0200 Subject: [PATCH] Add docblock --- Localization/L11nManager.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Localization/L11nManager.php b/Localization/L11nManager.php index 91590e1a1..7d8216e4f 100644 --- a/Localization/L11nManager.php +++ b/Localization/L11nManager.php @@ -190,6 +190,18 @@ class L11nManager return $this->language[$code][$module][$translation]; } + /** + * Get translation html escaped. + * + * @param string $code Country code + * @param string $module Module name + * @param string $theme Theme + * @param string $translation Text + * + * @return string In case the language element couldn't be found 'ERROR' will be returned + * + * @since 1.0.0 + */ public function getHtml(string $code, string $module, string $theme, string $translation) : string { return htmlspecialchars($this->getText($code, $module, $theme, $translation));