src/Contao/View/Contao2BackendView/ButtonRenderer.php
private function renderPasteNewFor($modelId)
    {
        $label = \sprintf($this->translate('pastenew.1'), ModelId::fromSerialized($modelId)->getId());
        return \sprintf(
            '<a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a>',
            $this->addToUrl('act=create&amp;after=' . $modelId),
            StringUtil::specialchars($label),
            $this->renderImageAsHtml('new.svg', $label)
        );
    }
private function renderPasteNewFor($modelId)
    {
        $label = \sprintf($this->translate('pastenew.1'), ModelId::fromSerialized($modelId)->getId());
        return \sprintf(
            '<a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a>',
            $this->addToUrl('act=create&amp;after=' . $modelId),
            StringUtil::specialchars($label),
            $this->renderImageAsHtml('new.svg', $label)
        );
    }
private function renderPasteNewFor ( $ modelId ) { $ label = \ sprintf ( $ this -> translate ( 'pastenew.1' ) , ModelId :: fromSerialized ( $ modelId ) -> getId ( ) ) ; return \ sprintf ( '<a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a>' , $ this -> addToUrl ( 'act=create&amp;after=' . $ modelId ) , StringUtil :: specialchars ( $ label ) , $ this -> renderImageAsHtml ( 'new.svg' , $ label ) ) ; }
Render the "paste new" button.

@param string $modelId The model id for which to create the paste new button.

@return string
Render the paste new button .