protected function getAllLayoutsPaths()
    {
        $paths = [];

        // layouts/
        if (is_dir($this->config->getLayoutsPath())) {
            $paths[] = $this->config->getLayoutsPath();
        }
        // <theme>/layouts/
        if ($this->config->hasTheme()) {
            $themes = $this->config->getTheme();
            foreach ($themes as $theme) {
                $paths[] = $this->config->getThemeDirPath($theme);
            }
        }
        // res/layouts/
        if (is_dir($this->config->getInternalLayoutsPath())) {
            $paths[] = $this->config->getInternalLayoutsPath();
        }

        return $paths;
    }
protected function getAllLayoutsPaths()
    {
        $paths = [];

        // layouts/
        if (is_dir($this->config->getLayoutsPath())) {
            $paths[] = $this->config->getLayoutsPath();
        }
        // <theme>/layouts/
        if ($this->config->hasTheme()) {
            $themes = $this->config->getTheme();
            foreach ($themes as $theme) {
                $paths[] = $this->config->getThemeDirPath($theme);
            }
        }
        // res/layouts/
        if (is_dir($this->config->getInternalLayoutsPath())) {
            $paths[] = $this->config->getInternalLayoutsPath();
        }

        return $paths;
    }
protected function getAllLayoutsPaths ( ) { $ paths = [ ] ; // layouts/ if ( is_dir ( $ this -> config -> getLayoutsPath ( ) ) ) { $ paths [ ] = $ this -> config -> getLayoutsPath ( ) ; } // <theme>/layouts/ if ( $ this -> config -> hasTheme ( ) ) { $ themes = $ this -> config -> getTheme ( ) ; foreach ( $ themes as $ theme ) { $ paths [ ] = $ this -> config -> getThemeDirPath ( $ theme ) ; } } // res/layouts/ if ( is_dir ( $ this -> config -> getInternalLayoutsPath ( ) ) ) { $ paths [ ] = $ this -> config -> getInternalLayoutsPath ( ) ; } return $ paths ; }
Return an array of layouts directories.

@return array Layouts directory
Return an array of layouts directories .