Networking\InitCmsBundle\Model\Page::getLocale PHP Метод

getLocale() публичный Метод

public getLocale ( ) : string
Результат string
    public function getLocale()
    {
        return $this->locale;
    }

Usage Example

Пример #1
0
 /**
  * @param  ContentRouteInterface $contentRoute
  * @return PageSnapshot
  */
 public function setContentRoute(ContentRouteInterface $contentRoute)
 {
     $contentRoute->setClassType(get_class($this));
     $contentRoute->setLocale($this->page->getLocale());
     $contentRoute->setTemplateName($this->page->getTemplateName());
     $this->contentRoute = $contentRoute;
     return $this;
 }
Page