Models

Danger

We’re sorry but this documentation section is outdated. Please have that in mind when trying to use it. You can help us making documentation up to date via Sylius Github. Thank you!

Locale

Locale represents one locale available in the application. It uses Symfony Intl component to return locale name. Locale has the following properties:

Property Description
id Unique id of the locale
code Locale’s code
createdAt Date when locale was created
updatedAt Date of last change

Hint

This model has one const STORAGE_KEY it is key used to store the locale in storage.

Note

This model implements the LocaleInterface For more detailed information go to Sylius API Locale.