public function ContentAwareGenerator::setDefaultLocale in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony-cmf/routing/ContentAwareGenerator.php \Symfony\Cmf\Component\Routing\ContentAwareGenerator::setDefaultLocale()
Overwrite the locale to be used by default if there is neither one in the parameters when building the route nor a request available (i.e. CLI).
Parameters
string $locale:
File
- vendor/
symfony-cmf/ routing/ ContentAwareGenerator.php, line 268
Class
- ContentAwareGenerator
- A generator that tries to generate routes from object, route names or content objects or names.
Namespace
Symfony\Cmf\Component\RoutingCode
public function setDefaultLocale($locale) {
$this->defaultLocale = $locale;
}