src/Contao/View/Contao2BackendView/ButtonRenderer.php
private function renderPasteAfterButton(GetPasteButtonEvent $event)
    {
        if (null !== ($value = $event->getHtmlPasteAfter())) {
            return $value;
        }

        $label = $this->translate('pasteafter.0');
        if ($event->isPasteAfterDisabled()) {
            return $this->renderImageAsHtml('pasteafter_.svg', $label, 'class="blink"');
        }

        if ('pasteafter.1' !== ($opDesc = $this->translate('pasteafter.1'))) {
            $title = \sprintf($opDesc, $event->getModel()->getId());
        } else {
            $title = \sprintf('%s id %s', $label, $event->getModel()->getId());
        }

        return \sprintf(
            ' <a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a>',
            $event->getHrefAfter(),
            StringUtil::specialchars($title),
            $this->renderImageAsHtml('pasteafter.svg', $label, 'class="blink"')
        );
    }
private function renderPasteAfterButton(GetPasteButtonEvent $event)
    {
        if (null !== ($value = $event->getHtmlPasteAfter())) {
            return $value;
        }

        $label = $this->translate('pasteafter.0');
        if ($event->isPasteAfterDisabled()) {
            return $this->renderImageAsHtml('pasteafter_.svg', $label, 'class="blink"');
        }

        if ('pasteafter.1' !== ($opDesc = $this->translate('pasteafter.1'))) {
            $title = \sprintf($opDesc, $event->getModel()->getId());
        } else {
            $title = \sprintf('%s id %s', $label, $event->getModel()->getId());
        }

        return \sprintf(
            ' <a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a>',
            $event->getHrefAfter(),
            StringUtil::specialchars($title),
            $this->renderImageAsHtml('pasteafter.svg', $label, 'class="blink"')
        );
    }
private function renderPasteAfterButton ( GetPasteButtonEvent $ event ) { if ( null !== ( $ value = $ event -> getHtmlPasteAfter ( ) ) ) { return $ value ; } $ label = $ this -> translate ( 'pasteafter.0' ) ; if ( $ event -> isPasteAfterDisabled ( ) ) { return $ this -> renderImageAsHtml ( 'pasteafter_.svg' , $ label , 'class="blink"' ) ; } if ( 'pasteafter.1' !== ( $ opDesc = $ this -> translate ( 'pasteafter.1' ) ) ) { $ title = \ sprintf ( $ opDesc , $ event -> getModel ( ) -> getId ( ) ) ; } else { $ title = \ sprintf ( '%s id %s' , $ label , $ event -> getModel ( ) -> getId ( ) ) ; } return \ sprintf ( ' <a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a>' , $ event -> getHrefAfter ( ) , StringUtil :: specialchars ( $ title ) , $ this -> renderImageAsHtml ( 'pasteafter.svg' , $ label , 'class="blink"' ) ) ; }
Render the paste after button.

@param GetPasteButtonEvent $event The event that has been triggered.

@return string
Render the paste after button .