Documentation

Document
in package

Table of Contents

getAlternateLanguage()  : object
Return the specified alternate language version of a document and null if the document doesn't exist

Methods

getAlternateLanguage()

Return the specified alternate language version of a document and null if the document doesn't exist

public static getAlternateLanguage(object $document, string $langKey) : object
Parameters
$document : object

the document

$langKey : string

the language code of the alternate language version, like "en-us"

Return values
object

the directly usable object, or null if the alternate language version does not exist

Search results