Transphporm\Builder::loadTemplate PHP Method

loadTemplate() private method

Load a template, firstly check if it's a file or a valid string
private loadTemplate ( )
    private function loadTemplate()
    {
        if (trim($this->template)[0] !== '<') {
            $xml = $this->cache->load($this->template, filemtime($this->template));
            return $xml ? $xml : ['body' => file_get_contents($this->template), 'headers' => []];
        } else {
            return ['body' => $this->template, 'headers' => []];
        }
    }