eZ\Publish\Core\FieldType\Page\PageService::getLayoutTemplate PHP Method

getLayoutTemplate() public method

Returns the template to use for given layout.
public getLayoutTemplate ( string $layoutIdentifier ) : string
$layoutIdentifier string
return string
    public function getLayoutTemplate($layoutIdentifier)
    {
        $def = $this->getZoneDefinitionByLayout($layoutIdentifier);
        return $def['template'];
    }

Usage Example

 /**
  * @expectedException OutOfBoundsException
  *
  * @covers eZ\Publish\Core\FieldType\Page\PageService::getLayoutTemplate
  */
 public function testGetLayoutTemplateInvalidLayout()
 {
     $this->pageService->getLayoutTemplate('invalid_layout');
 }