protected function resolveTypeClassName($type)
    {
        $types = [
            'page'    => Page::class,
            'partial' => Partial::class,
            'layout'  => Layout::class,
            'content' => Content::class,
            'asset'   => Asset::class
        ];

        if (!array_key_exists($type, $types)) {
            throw new ApplicationException(trans('cms::lang.template.invalid_type'));
        }

        return $types[$type];
    }
protected function resolveTypeClassName($type)
    {
        $types = [
            'page'    => Page::class,
            'partial' => Partial::class,
            'layout'  => Layout::class,
            'content' => Content::class,
            'asset'   => Asset::class
        ];

        if (!array_key_exists($type, $types)) {
            throw new ApplicationException(trans('cms::lang.template.invalid_type'));
        }

        return $types[$type];
    }
protected function resolveTypeClassName ( $ type ) { $ types = [ 'page' => Page :: class , 'partial' => Partial :: class , 'layout' => Layout :: class , 'content' => Content :: class , 'asset' => Asset :: class ] ; if ( ! array_key_exists ( $ type , $ types ) ) { throw new ApplicationException ( trans ( 'cms::lang.template.invalid_type' ) ) ; } return $ types [ $ type ] ; }
Reolves a template type to its class name
@param string $type
@return string
Reolves a template type to its class name