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(Locale $locale)

No description

Details

__construct(EntityManagerInterface $entityManager)

Parameters

EntityManagerInterface $entityManager

getByID($id)

Parameters

$id

Locale|null getDefaultLocale()

Get the default site locale (if set).

Return Value

Locale|null

setDefaultLocale(Locale $defaultLocale)

Parameters

Locale $defaultLocale

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

Parameters

Site $site
$language
$country

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

Parameters

LocaleInterface $l
$numPlurals
$pluralRule
$pluralCases

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

Parameters

Locale $locale
Template $template
$name
$url_slug

delete(Locale $locale)

Parameters

Locale $locale