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

execute() public method

Execute the action.
public execute ( )
    public function execute()
    {
        // get parameters
        $this->currentTheme = $this->getParameter('theme', 'string');
        // does the item exist
        if ($this->currentTheme !== null && BackendExtensionsModel::existsTheme($this->currentTheme)) {
            parent::execute();
            $this->loadData();
            $this->loadDataGridTemplates();
            $this->parse();
            $this->display();
        } else {
            // no item found, redirect to index, because somebody is fucking with our url
            $this->redirect(BackendModel::createURLForAction('Themes') . '&error=non-existing');
        }
    }