Backend\Core\Ajax\Templates::execute PHP Method

execute() public method

Execute the action
public execute ( )
    public function execute()
    {
        $this->templates = [];
        $theme = $this->get('fork.settings')->get('Core', 'theme');
        $files[] = BACKEND_PATH . '/Core/Layout/EditorTemplates/templates.js';
        $themePath = FRONTEND_PATH . '/Themes/' . $theme . '/Core/Layout/EditorTemplates/templates.js';
        if (is_file($themePath)) {
            $files[] = $themePath;
        }
        foreach ($files as $file) {
            $this->processFile($file);
        }
    }