public function addIcon($row, $label, Contao\DataContainer $dc, $args)
	{
		$image = 'member';
		$time = Contao\Date::floorToMinute();

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

		if ($row['disable'] || $disabled)
		{
			$image .= '_';
		}

		$args[0] = sprintf('<div class="list_icon_new" style="background-image:url(\'%ssystem/themes/%s/icons/%s.svg\')" data-icon="%s.svg" data-icon-disabled="%s.svg">&nbsp;</div>', Contao\System::getContainer()->get('contao.assets.assets_context')->getStaticUrl(), Contao\Backend::getTheme(), $image, $disabled ? $image : rtrim($image, '_'), rtrim($image, '_') . '_');

		return $args;
	}
public function addIcon($row, $label, Contao\DataContainer $dc, $args)
	{
		$image = 'member';
		$time = Contao\Date::floorToMinute();

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

		if ($row['disable'] || $disabled)
		{
			$image .= '_';
		}

		$args[0] = sprintf('<div class="list_icon_new" style="background-image:url(\'%ssystem/themes/%s/icons/%s.svg\')" data-icon="%s.svg" data-icon-disabled="%s.svg">&nbsp;</div>', Contao\System::getContainer()->get('contao.assets.assets_context')->getStaticUrl(), Contao\Backend::getTheme(), $image, $disabled ? $image : rtrim($image, '_'), rtrim($image, '_') . '_');

		return $args;
	}
public function addIcon ( $ row , $ label , Contao \ DataContainer $ dc , $ args ) { $ image = 'member' ; $ time = Contao \ Date :: floorToMinute ( ) ; $ disabled = ( $ row [ 'start' ] !== '' && $ row [ 'start' ] > $ time ) || ( $ row [ 'stop' ] !== '' && $ row [ 'stop' ] < $ time ) ; if ( $ row [ 'disable' ] || $ disabled ) { $ image .= '_' ; } $ args [ 0 ] = sprintf ( '<div class="list_icon_new" style="background-image:url(\'%ssystem/themes/%s/icons/%s.svg\')" data-icon="%s.svg" data-icon-disabled="%s.svg">&nbsp;</div>' , Contao \ System :: getContainer ( ) -> get ( 'contao.assets.assets_context' ) -> getStaticUrl ( ) , Contao \ Backend :: getTheme ( ) , $ image , $ disabled ? $ image : rtrim ( $ image , '_' ) , rtrim ( $ image , '_' ) . '_' ) ; return $ args ; }
Add an image to each record

@param array                $row
@param string               $label
@param Contao\DataContainer $dc
@param array                $args

@return array
Add an image to each record