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

copyAction() public method

Returns the HTML code for a copy of a resource object
public copyAction ( ) : string
return string Generated output
    public function copyAction()
    {
        if (config('shop.authorize', true)) {
            $this->authorize('admin', [['admin', 'editor']]);
        }
        $cntl = $this->createClient();
        return $this->getHtml($cntl->copy());
    }