getTemplate() public method

public getTemplate ( ) : string
return string
 /**
  * @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);
 }
Ejemplo n.º 2
0
 /**
  * @return string
  */
 public function getTemplate()
 {
     if (!$this->contentRoute) {
         return;
     }
     return $this->contentRoute->getTemplate();
 }