core-bundle/src/Resources/contao/dca/tl_article.php
public function addIcon($row, $label)
	{
		$image = 'articles';
		$time = Contao\Date::floorToMinute();

		$unpublished = ($row['start'] != '' && $row['start'] > $time) || ($row['stop'] != '' && $row['stop'] < $time);

		if (!$row['published'] || $unpublished)
		{
			$image .= '_';
		}

		return '<a href="contao/main.php?do=feRedirect&amp;page='.$row['pid'].'&amp;article='.($row['alias'] ?: $row['id']).'" title="'.Contao\StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['view']).'" target="_blank">'.Contao\Image::getHtml($image.'.svg', '', 'data-icon="'.($unpublished ? $image : rtrim($image, '_')).'.svg" data-icon-disabled="'.rtrim($image, '_').'_.svg"').'</a> '.$label;
	}
public function addIcon($row, $label)
	{
		$image = 'articles';
		$time = Contao\Date::floorToMinute();

		$unpublished = ($row['start'] != '' && $row['start'] > $time) || ($row['stop'] != '' && $row['stop'] < $time);

		if (!$row['published'] || $unpublished)
		{
			$image .= '_';
		}

		return '<a href="contao/main.php?do=feRedirect&amp;page='.$row['pid'].'&amp;article='.($row['alias'] ?: $row['id']).'" title="'.Contao\StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['view']).'" target="_blank">'.Contao\Image::getHtml($image.'.svg', '', 'data-icon="'.($unpublished ? $image : rtrim($image, '_')).'.svg" data-icon-disabled="'.rtrim($image, '_').'_.svg"').'</a> '.$label;
	}
Add an image to each page in the tree

@param array  $row
@param string $label

@return string