public function onGetTemplateList()
    {
        $this->validateRequestTheme();

        $page = Page::inTheme($this->theme);
        return [
            'layouts' => $page->getLayoutOptions()
        ];
    }
public function onGetTemplateList()
    {
        $this->validateRequestTheme();

        $page = Page::inTheme($this->theme);
        return [
            'layouts' => $page->getLayoutOptions()
        ];
    }
public function onGetTemplateList ( ) { $ this -> validateRequestTheme ( ) ; $ page = Page :: inTheme ( $ this -> theme ) ; return [ 'layouts' => $ page -> getLayoutOptions ( ) ] ; }
Returns list of available templates
@return array
Returns list of available templates