public function TestableContentAwareGenerator::getLocale in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\TestableContentAwareGenerator::getLocale()
Determine the locale to be used with this request
Parameters
array $parameters the parameters determined by the route:
Return value
string the locale following of the parameters or any other information the router has available. defaultLocale if no other locale can be determined.
Overrides ContentAwareGenerator::getLocale
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ ContentAwareGeneratorTest.php, line 445
Class
- TestableContentAwareGenerator
- Overwrite doGenerate to reduce amount of mocking needed
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function getLocale($parameters) {
return parent::getLocale($parameters);
}