SiteLanguage

Entity representing a site_language configuration of a site object.

Table of Contents

Properties

$base  : UriInterface
The Base URL for this language
$configuration  : array<string|int, mixed>
Additional parameters configured for this site language
$direction  : string
The direction for this language
$enabled  : bool
$fallbackLanguageIds  : array<string|int, mixed>
$fallbackType  : string
$flagIdentifier  : string
The flag key (like "gb" or "fr") used to be used in TYPO3's Backend.
$hreflang  : string
Language tag for this language defined by RFC 1766 / 3066 for "lang" and "hreflang" attributes
$languageId  : int
The language mapped to the sys_language DB entry.
$locale  : string
Locale, like 'de_CH' or 'en_GB'
$navigationTitle  : string
Label to be used within language menus
$title  : string
Label to be used within TYPO3 to identify the language
$twoLetterIsoCode  : string
The iso code for this language (two letter) ISO-639-1
$typo3Language  : string
Prefix for TYPO3's language files "default" for english, otherwise one of TYPO3's internal language keys.
$websiteTitle  : string
Localized title of the site to be used in title tag.

Methods

__construct()  : mixed
SiteLanguage constructor.
enabled()  : bool
Returns true if the language is available in frontend usage
getBase()  : UriInterface
getDirection()  : string
Returns the language direction
getFallbackLanguageIds()  : array<string|int, mixed>
getFallbackType()  : string
getFlagIdentifier()  : string
getHreflang()  : string
Returns the RFC 1766 / 3066 language tag
getLanguageId()  : int
getLocale()  : string
getNavigationTitle()  : string
getTitle()  : string
getTwoLetterIsoCode()  : string
Returns the ISO-639-1 language ISO code
getTypo3Language()  : string
getWebsiteTitle()  : string
isEnabled()  : bool
Helper so fluid can work with this as well.
toArray()  : array<string|int, mixed>
Returns the SiteLanguage in an array representation for e.g. the usage in TypoScript.

Properties

$base

The Base URL for this language

protected UriInterface $base

$configuration

Additional parameters configured for this site language

protected array<string|int, mixed> $configuration = []

$direction

The direction for this language

protected string $direction = ''

$fallbackLanguageIds

protected array<string|int, mixed> $fallbackLanguageIds = []

$fallbackType

protected string $fallbackType = 'strict'

$flagIdentifier

The flag key (like "gb" or "fr") used to be used in TYPO3's Backend.

protected string $flagIdentifier = ''

$hreflang

Language tag for this language defined by RFC 1766 / 3066 for "lang" and "hreflang" attributes

protected string $hreflang = ''

$languageId

The language mapped to the sys_language DB entry.

protected int $languageId

$locale

Locale, like 'de_CH' or 'en_GB'

protected string $locale

$navigationTitle

Label to be used within language menus

protected string $navigationTitle = ''

$title

Label to be used within TYPO3 to identify the language

protected string $title = 'Default'

$twoLetterIsoCode

The iso code for this language (two letter) ISO-639-1

protected string $twoLetterIsoCode = 'en'

$typo3Language

Prefix for TYPO3's language files "default" for english, otherwise one of TYPO3's internal language keys.

protected string $typo3Language = 'default'

Previously configured via TypoScript config.language = fr

$websiteTitle

Localized title of the site to be used in title tag.

protected string $websiteTitle = ''

Methods

__construct()

SiteLanguage constructor.

public __construct(int $languageId, string $locale, UriInterface $base, array<string|int, mixed> $configuration) : mixed
Parameters
$languageId : int
$locale : string
$base : UriInterface
$configuration : array<string|int, mixed>

enabled()

Returns true if the language is available in frontend usage

public enabled() : bool
Return values
bool

getBase()

public getBase() : UriInterface
Return values
UriInterface

getDirection()

Returns the language direction

public getDirection() : string
Return values
string

getFallbackLanguageIds()

public getFallbackLanguageIds() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFallbackType()

public getFallbackType() : string
Return values
string

getFlagIdentifier()

public getFlagIdentifier() : string
Return values
string

getHreflang()

Returns the RFC 1766 / 3066 language tag

public getHreflang() : string
Return values
string

getLanguageId()

public getLanguageId() : int
Return values
int

getLocale()

public getLocale() : string
Return values
string

getNavigationTitle()

public getNavigationTitle() : string
Return values
string

getTitle()

public getTitle() : string
Return values
string

getTwoLetterIsoCode()

Returns the ISO-639-1 language ISO code

public getTwoLetterIsoCode() : string
Return values
string

getTypo3Language()

public getTypo3Language() : string
Return values
string

getWebsiteTitle()

public getWebsiteTitle() : string
Return values
string

isEnabled()

Helper so fluid can work with this as well.

public isEnabled() : bool
Return values
bool

toArray()

Returns the SiteLanguage in an array representation for e.g. the usage in TypoScript.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results