getLogicalName() public method

public getLogicalName ( )
Beispiel #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());
 }
 /**
  * {@inheritdoc}
  */
 public function getLogicalName()
 {
     $logicalName = parent::getLogicalName();
     if (!empty($this->themeOverride)) {
         $logicalName = $this->themeOverride . '|' . $logicalName;
     }
     return $logicalName;
 }