Aimeos\Shop\Controller\JqadmController::saveAction PHP Method

saveAction() public method

Saves a new resource object
public saveAction ( ) : string
return string Generated output
    public function saveAction()
    {
        if (config('shop.authorize', true)) {
            $this->authorize('admin', [['admin', 'editor']]);
        }
        $cntl = $this->createClient();
        return $this->getHtml($cntl->save() ?: $cntl->search());
    }