FOF30\Factory\SwitchFactory::viewFinder PHP Метод

viewFinder() публичный Метод

The default configuration is: Look for .php, .blade.php files; default layout "default"; no default subtemplate; look for both pluralised and singular views; fall back to the default layout without subtemplate; look for templates in both site and admin
public viewFinder ( View $view, array $config = [] ) : mixed
$view FOF30\View\View The view this view template finder will be attached to
$config array Configuration variables for the object
Результат mixed
    public function viewFinder(View $view, array $config = array())
    {
        // Initialise the configuration with the default values
        $defaultConfig = array('extensions' => array('.php', '.blade.php'), 'defaultLayout' => 'default', 'defaultTpl' => '', 'strictView' => false, 'strictTpl' => false, 'strictLayout' => false, 'sidePrefix' => 'any');
        $config = array_merge($defaultConfig, $config);
        return parent::viewFinder($view, $config);
    }