class Service (View source)

Properties

protected $entityManager

Methods

__construct(EntityManagerInterface $entityManager)

No description

getByID($id)

No description

Locale|null
getDefaultLocale()

Get the default site locale (if set).

setDefaultLocale(Locale $defaultLocale)

No description

add(Site $site, $language, $country)

No description

updatePluralSettings(LocaleInterface $l, $numPlurals = null, $pluralRule = '', $pluralCases = [])

No description

addHomePage(Locale $locale, Template $template, $name, $url_slug = null)

No description

delete(LocaleEntityInterface $locale)

No description

Details

__construct(EntityManagerInterface $entityManager)

No description

Parameters

EntityManagerInterface $entityManager

getByID($id)

No description

Parameters

$id

Locale|null getDefaultLocale()

Get the default site locale (if set).

Return Value

Locale|null

setDefaultLocale(Locale $defaultLocale)

No description

Parameters

Locale $defaultLocale

add(Site $site, $language, $country)

No description

Parameters

Site $site
$language
$country

updatePluralSettings(LocaleInterface $l, $numPlurals = null, $pluralRule = '', $pluralCases = [])

No description

Parameters

LocaleInterface $l
$numPlurals
$pluralRule
$pluralCases

addHomePage(Locale $locale, Template $template, $name, $url_slug = null)

No description

Parameters

Locale $locale
Template $template
$name
$url_slug

delete(LocaleEntityInterface $locale)

No description

Parameters

LocaleEntityInterface $locale