public function toggleIcon($row, $href, $label, $title, $icon, $attributes)
	{
		if (\strlen(Contao\Input::get('tid')))
		{
			$this->toggleVisibility(Contao\Input::get('tid'), (Contao\Input::get('state') == 1), (@func_get_arg(12) ?: null));
			$this->redirect($this->getReferer());
		}

		// Check permissions AFTER checking the tid, so hacking attempts are logged
		if (!$this->User->hasAccess('tl_newsletter_recipients::active', 'alexf'))
		{
			return '';
		}

		$href .= '&amp;tid='.$row['id'].'&amp;state='.($row['active'] ? '' : 1);

		if (!$row['active'])
		{
			$icon = 'invisible.svg';
		}

		return '<a href="'.$this->addToUrl($href).'" title="'.Contao\StringUtil::specialchars($title).'"'.$attributes.'>'.Contao\Image::getHtml($icon, $label, 'data-state="' . ($row['active'] ? 1 : 0) . '"').'</a> ';
	}
public function toggleIcon($row, $href, $label, $title, $icon, $attributes)
	{
		if (\strlen(Contao\Input::get('tid')))
		{
			$this->toggleVisibility(Contao\Input::get('tid'), (Contao\Input::get('state') == 1), (@func_get_arg(12) ?: null));
			$this->redirect($this->getReferer());
		}

		
		if (!$this->User->hasAccess('tl_newsletter_recipients::active', 'alexf'))
		{
			return '';
		}

		$href .= '&amp;tid='.$row['id'].'&amp;state='.($row['active'] ? '' : 1);

		if (!$row['active'])
		{
			$icon = 'invisible.svg';
		}

		return '<a href="'.$this->addToUrl($href).'" title="'.Contao\StringUtil::specialchars($title).'"'.$attributes.'>'.Contao\Image::getHtml($icon, $label, 'data-state="' . ($row['active'] ? 1 : 0) . '"').'</a> ';
	}
public function toggleIcon ( $ row , $ href , $ label , $ title , $ icon , $ attributes ) { if ( \ strlen ( Contao \ Input :: get ( 'tid' ) ) ) { $ this -> toggleVisibility ( Contao \ Input :: get ( 'tid' ) , ( Contao \ Input :: get ( 'state' ) == 1 ) , ( @ func_get_arg ( 12 ) ? : null ) ) ; $ this -> redirect ( $ this -> getReferer ( ) ) ; } // Check permissions AFTER checking the tid, so hacking attempts are logged if ( ! $ this -> User -> hasAccess ( 'tl_newsletter_recipients::active' , 'alexf' ) ) { return '' ; } $ href .= '&amp;tid=' . $ row [ 'id' ] . '&amp;state=' . ( $ row [ 'active' ] ? '' : 1 ) ; if ( ! $ row [ 'active' ] ) { $ icon = 'invisible.svg' ; } return '<a href="' . $ this -> addToUrl ( $ href ) . '" title="' . Contao \ StringUtil :: specialchars ( $ title ) . '"' . $ attributes . '>' . Contao \ Image :: getHtml ( $ icon , $ label , 'data-state="' . ( $ row [ 'active' ] ? 1 : 0 ) . '"' ) . '</a> ' ; }
Return the "toggle visibility" button

@param array  $row
@param string $href
@param string $label
@param string $title
@param string $icon
@param string $attributes

@return string
Return the toggle visibility button