src/Sulu/Component/Export/Export.php
protected function getTemplate($format)
    {
        if (!isset($this->formatFilePaths[$format])) {
            throw new \Exception(sprintf('No format "%s" configured for Snippet export', $format));
        }

        $templatePath = $this->formatFilePaths[$format];

        if (!$this->templating->exists($templatePath)) {
            throw new \Exception(sprintf('No template file "%s" found for Snippet export', $format));
        }

        return $templatePath;
    }
protected function getTemplate($format)
    {
        if (!isset($this->formatFilePaths[$format])) {
            throw new \Exception(sprintf('No format "%s" configured for Snippet export', $format));
        }

        $templatePath = $this->formatFilePaths[$format];

        if (!$this->templating->exists($templatePath)) {
            throw new \Exception(sprintf('No template file "%s" found for Snippet export', $format));
        }

        return $templatePath;
    }
protected function getTemplate ( $ format ) { if ( ! isset ( $ this -> formatFilePaths [ $ format ] ) ) { throw new \ Exception ( sprintf ( 'No format "%s" configured for Snippet export' , $ format ) ) ; } $ templatePath = $ this -> formatFilePaths [ $ format ] ; if ( ! $ this -> templating -> exists ( $ templatePath ) ) { throw new \ Exception ( sprintf ( 'No template file "%s" found for Snippet export' , $ format ) ) ; } return $ templatePath ; }
Returns export template for given format like XLIFF1.2.

@param $format

@return string

@throws \Exception
Returns export template for given format like XLIFF1 . 2 .