src/CoreBundle/Contao/Hooks/AbstractContentElementAndModuleCallback.php
private function renderEditButton($caption, $title, UrlBuilder $url)
    {
        $icon = $this->iconBuilder->getBackendIconImageTag(
            'system/themes/flexible/icons/alias.svg',
            $caption,
            'style="vertical-align:top"'
        );

        return sprintf(
            '<a href="%s" title="%s" style="padding-left:3px">%s</a>',
            $url->getUrl(),
            $title,
            $icon
        );
    }
private function renderEditButton($caption, $title, UrlBuilder $url)
    {
        $icon = $this->iconBuilder->getBackendIconImageTag(
            'system/themes/flexible/icons/alias.svg',
            $caption,
            'style="vertical-align:top"'
        );

        return sprintf(
            '<a href="%s" title="%s" style="padding-left:3px">%s</a>',
            $url->getUrl(),
            $title,
            $icon
        );
    }
Render an edit button.

@param string     $caption The caption (alt attribute of the image).
@param string     $title   The title (title attribute of the <a> tag).
@param UrlBuilder $url     The URL for the button.

@return string