Interface ILanguageAPI
-
- All Superinterfaces:
T4PublishAPI
public interface ILanguageAPI extends T4PublishAPI
Publish API for getting information about the languages used in publish.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
get()
Returns the current language code used in publish.PDLanguage
get(String languageCode)
Return the language data from the language code.Map<String,Object>
getLink(String language)
Return a map with the data for link to a page in the language passed as parameter.
-
-
-
Method Detail
-
get
String get()
Returns the current language code used in publish.- Returns:
- Language code.
-
get
PDLanguage get(String languageCode)
Return the language data from the language code.- Parameters:
languageCode
- Language code.- Returns:
PDLanguage
language data.
-
getLink
Map<String,Object> getLink(String language)
Return a map with the data for link to a page in the language passed as parameter.- targetLanguageCode: Language code used to build the link data if that language exists.
- targetLanguageName: Name of language used to build the link data if exists.
- targetLanguageURL: URL to the page in the language if is able to build it.
- Parameters:
language
- Language used to build the link to currently publishing page in that language.- Returns:
- a
Map<String,Object>
with the values for the link. - See Also:
LanguageAttributes
-
-