Multilanguage

Utility class for multilang

since

2.5.4

Methods

getSiteHomePages

Method to return a list of language home page menu items.

getSiteHomePages(\Joomla\Database\DatabaseInterface $db = null) : array
static
since

3.5

Arguments

$db

\Joomla\Database\DatabaseInterfaceThe database

Response

arrayof menu objects.

isEnabled

Method to determine if the language filter plugin is enabled.

isEnabled(\Joomla\CMS\Application\CMSApplication $app = null, \Joomla\Database\DatabaseInterface $db = null) : boolean
static

This works for both site and administrator.

since

2.5.4

Arguments

$app

\Joomla\CMS\Application\CMSApplicationThe application

$db

\Joomla\Database\DatabaseInterfaceThe database

Response

booleanTrue if site is supporting multiple languages; false otherwise.

Properties

enabled

Flag indicating multilanguage functionality is enabled.

static
since

4.0.0

Type(s)

boolean