LanguageDropdownField::__construct
Create a new LanguageDropdownField
Signature
public function __construct(string
$name,
[string
$title = NULL,
[array
$excludeLocales = ,
[string
$translatingClass = 'SiteTree',
[string
$list = 'Common-English',
[
$instance = NULL]]]]] )
Parameters
$name
—
string
$title
—
string
$excludeLocales
—
array
- List of locales that won't be included
$translatingClass
—
string
- Name of the class with translated instances
where to look for used languages
$list
—
string
- Indicates the source language list.
Can be either Common-English, Common-Native, Locale-English, Locale-Native
$instance
—