Backend\Modules\Extensions\Actions\ExportThemeTemplates::execute PHP Method

execute() public method

Load the selected theme, falling back to default if none specified.
public execute ( )
    public function execute()
    {
        // get data
        $this->selectedTheme = $this->getParameter('theme', 'string');
        // build available themes
        foreach (Model::getThemes() as $theme) {
            $this->availableThemes[$theme['value']] = $theme['label'];
        }
        // determine selected theme, based upon submitted form or default theme
        $this->selectedTheme = SpoonFilter::getValue($this->selectedTheme, array_keys($this->availableThemes), $this->get('fork.settings')->get('Core', 'theme', 'core'));
    }
ExportThemeTemplates