getLogicalName() 공개 메소드

public getLogicalName ( )
예제 #1
0
 /**
  * @param \TYPO3\Fluid\View\StandaloneView $view
  * @param \Symfony\Bundle\FrameworkBundle\Templating\TemplateReference $templateReference
  * @return void
  */
 protected function addTemplateSource(StandaloneView &$view, TemplateReference $templateReference)
 {
     $translatedPaths = $this->environment->getTranslatedTemplatePaths();
     $templateRootPath = $translatedPaths['templateRootPath'];
     list($bundleName, $controllerName, $file) = explode(':', $templateReference->getLogicalName());
     list($action, $format, $engine) = explode('.', $file);
     $templatePathAndFilename = $templateRootPath . $controllerName . '/' . $action . '.' . $format . '.' . $engine;
     $view->setTemplatePathAndFilename($templatePathAndFilename);
 }
 /**
  * Locates and appends template to an array
  *
  * @param FileLocatorInterface $locator
  * @param TemplateReference    $template
  * @param array                $templates
  */
 protected function locateTemplate(FileLocatorInterface $locator, TemplateReference $template, array &$templates)
 {
     $templates[$template->getLogicalName()] = $locator->locate($template->getPath());
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public function getLogicalName()
 {
     $logicalName = parent::getLogicalName();
     if (!empty($this->themeOverride)) {
         $logicalName = $this->themeOverride . '|' . $logicalName;
     }
     return $logicalName;
 }