code: public function copyPageWithSubpages($row, $href, $label, $title, $icon, $attributes, $table)
  	{
  		if ($GLOBALS['TL_DCA'][$table]['config']['closed'])
  		{
  			return '';
  		}
  
  		$objSubpages = Contao\PageModel::findByPid($row['id']);
  
  		return ($objSubpages !== null && $objSubpages->count() > 0 && $this->User->hasAccess($row['type'], 'alpty') && $this->User->isAllowed(Contao\BackendUser::CAN_EDIT_PAGE_HIERARCHY, $row)) ? '<a href="'.$this->addToUrl($href.'&amp;id='.$row['id']).'" title="'.Contao\StringUtil::specialchars($title).'"'.$attributes.'>'.Contao\Image::getHtml($icon, $label).'</a> ' : Contao\Image::getHtml(preg_replace('/\.svg$/i', '_.svg', $icon)).' ';
  	}
docs: Return the copy page with subpages button
  
  @param array  $row
  @param string $href
  @param string $label
  @param string $title
  @param string $icon
  @param string $attributes
  @param string $table
  
  @return string