Наследование: extends eZ\Publish\Core\FieldType\Page\PageService
Пример #1
0
 /**
  * Returns the template to use for given layout.
  * If template is a legacy one (*.tpl) and does not begin with "design:" (like usually configured in legacy ezflow),
  * then add the appropriate prefix ("design:zone/", like in ezpage.tpl legacy template).
  *
  * @param string $layoutIdentifier
  * @return string
  */
 public function getLayoutTemplate($layoutIdentifier)
 {
     $template = parent::getLayoutTemplate($layoutIdentifier);
     if (strpos($template, '.tpl') !== false && strpos($template, 'design:') === false) {
         $template = "design:zone/{$template}";
     }
     return $template;
 }