Multilanguage
Utility class for multilang
since |
2.5.4 |
---|---|
package |
Joomla CMS |
Methods
getSiteHomePages
Method to return a list of language home page menu items.
getSiteHomePages(\Joomla\Database\DatabaseInterface db = null) : mixed||string|int
static
since |
3.5 |
---|
Arguments
- db
DatabaseInterface|null
The database
Response
array<string|int, mixed>
of 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) :
static
This works for both site and administrator.
since |
2.5.4 |
---|
Arguments
- app
CMSApplication|null
The application- db
DatabaseInterface|null
The database
Response
bool
True if site is supporting multiple languages; false otherwise.
Properties
enabled
Flag indicating multilanguage functionality is enabled.
static
since |
4.0.0 |
---|
Type(s)
bool