SiteLocaleSelector
class SiteLocaleSelector (View source)
Methods
string
selectLocale(string $fieldName, Site $site, Locale $selectedLocale = null, array $options = [])
Creates form fields and JavaScript page chooser for choosing a locale.
string
selectLocaleMultiple(string $fieldName, Site $site, array $selectedLocales = [], array $options = [])
Creates form fields and JavaScript page chooser for choosing a locale.
bool
shouldDisplayLocaleCode(array $options, array $locales)
No description
Details
string
selectLocale(string $fieldName, Site $site, Locale $selectedLocale = null, array $options = [])
Creates form fields and JavaScript page chooser for choosing a locale.
string
selectLocaleMultiple(string $fieldName, Site $site, array $selectedLocales = [], array $options = [])
Creates form fields and JavaScript page chooser for choosing a locale.
private bool
shouldDisplayLocaleCode(array $options, array $locales)
No description