Networking\InitCmsBundle\Model\ContentRouteInterface::getLocale PHP 메소드

getLocale() 공개 메소드

public getLocale ( ) : string
리턴 string
    public function getLocale();

Usage Example

 /**
  * @param ContentRouteInterface $contentRoute
  * @param $path
  * @param $content
  * @return Route
  */
 public static function generateRoute(ContentRouteInterface $contentRoute, $path, $content)
 {
     $template = new Template(array('template' => $contentRoute->getTemplate()));
     $defaults = array('route_params' => '', Route::LOCALE => $contentRoute->getLocale(), RouteObjectInterface::CONTROLLER_NAME => $contentRoute->getController(), RouteObjectInterface::TEMPLATE_NAME => $template, RouteObjectInterface::CONTENT_OBJECT => $content);
     return new Route($path, $defaults);
 }
All Usage Examples Of Networking\InitCmsBundle\Model\ContentRouteInterface::getLocale