code: public function copyAll()
  	{
  		if ($GLOBALS['TL_DCA'][$this->strTable]['config']['notCopyable'])
  		{
  			throw new InternalServerErrorException('Table "' . $this->strTable . '" is not copyable.');
  		}
  
  		/** @var Session $objSession */
  		$objSession = System::getContainer()->get('session');
  
  		$arrClipboard = $objSession->get('CLIPBOARD');
  
  		if (isset($arrClipboard[$this->strTable]) && \is_array($arrClipboard[$this->strTable]['id']))
  		{
  			foreach ($arrClipboard[$this->strTable]['id'] as $id)
  			{
  				$this->intId = $id;
  				$id = $this->copy(true);
  				Input::setGet('pid', $id);
  				Input::setGet('mode', 1);
  			}
  		}
  
  		$this->redirect($this->getReferer());
  	}
docs: Move all selected records
  
  @throws InternalServerErrorException