Devise\Templates\TemplatesRepository::getTemplateSourceByPath PHP Method

getTemplateSourceByPath() protected method

Get the extends/layout string from given template path
protected getTemplateSourceByPath ( $templatePath ) : array
return array
    protected function getTemplateSourceByPath($templatePath)
    {
        // find the file location, so we can get the file contents
        $fileLocation = $this->View->make($templatePath)->getPath();
        return \File::get($fileLocation);
    }