tl_page::editArticles PHP Method

editArticles() public method

Generate an "edit articles" button and return it as string
public editArticles ( array $row, string $href, string $label, string $title, string $icon ) : string
$row array
$href string
$label string
$title string
$icon string
return string
    public function editArticles($row, $href, $label, $title, $icon)
    {
        if (!$this->User->hasAccess('article', 'modules')) {
            return '';
        }
        return $row['type'] == 'regular' || $row['type'] == 'error_403' || $row['type'] == 'error_404' ? '<a href="' . $this->addToUrl($href . '&amp;pn=' . $row['id']) . '" title="' . StringUtil::specialchars($title) . '">' . Image::getHtml($icon, $label) . '</a> ' : Image::getHtml(preg_replace('/\\.svg$/i', '_.svg', $icon)) . ' ';
    }