Devise\Templates\TemplatesRepository::getTemplateExtends PHP Method

getTemplateExtends() protected method

Get the extends/layout string from given template source/contents
protected getTemplateExtends ( string $templateSource ) : array
$templateSource string
return array
    protected function getTemplateExtends($templateSource)
    {
        preg_match('/@extends\\(\'(.+)\'\\)/', $templateSource, $matches);
        return array_pop($matches);
    }