WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface::getLocale PHP Method

getLocale() public method

public getLocale ( ) : string
return string
    public function getLocale() : string;

Usage Example

 /**
  * {@inheritdoc}
  */
 public function generate(RouteInterface $resource)
 {
     $this->defaults['id'] = $resource->getIdentifier()->getId();
     $this->defaults['_locale'] = $resource->getLocale();
     return new SymfonyRoute($resource->getPath(), $this->defaults, $this->requirements, $this->options);
 }
All Usage Examples Of WellCommerce\Bundle\RoutingBundle\Entity\RouteInterface::getLocale