original_string: private function generatePasteImage($type, $disabled, $table, array $row, array $clipboard = null)
      {
          /**
           * @var Backend
           * @var Image   $imageAdapter
           */
          $backendAdapter = $this->framework->getAdapter(Backend::class);
          $imageAdapter = $this->framework->getAdapter(Image::class);
  
          if ($disabled) {
              return $imageAdapter->getHtml($type.'_.svg').' ';
          }
  
          $url = \sprintf('act=%s&amp;mode=%s&amp;pid=%s', $clipboard['mode'], ('pasteafter' === $type ? 1 : 2), $row['id']);
  
          // Add the ID to the URL if the clipboard does not contain any
          if (!\is_array($clipboard['id'])) {
              $url .= '&amp;id='.$clipboard['id'];
          }
  
          return \sprintf(
              '<a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a> ',
              $backendAdapter->addToUrl($url),
              specialchars(\sprintf($GLOBALS['TL_LANG'][$table][$type][1], $row['id'])),
              $imageAdapter->getHtml($type.'.svg', \sprintf($GLOBALS['TL_LANG'][$table][$type][1], $row['id']))
          );
      }
code: private function generatePasteImage($type, $disabled, $table, array $row, array $clipboard = null)
      {
          /**
           * @var Backend
           * @var Image   $imageAdapter
           */
          $backendAdapter = $this->framework->getAdapter(Backend::class);
          $imageAdapter = $this->framework->getAdapter(Image::class);
  
          if ($disabled) {
              return $imageAdapter->getHtml($type.'_.svg').' ';
          }
  
          $url = \sprintf('act=%s&amp;mode=%s&amp;pid=%s', $clipboard['mode'], ('pasteafter' === $type ? 1 : 2), $row['id']);
  
          // Add the ID to the URL if the clipboard does not contain any
          if (!\is_array($clipboard['id'])) {
              $url .= '&amp;id='.$clipboard['id'];
          }
  
          return \sprintf(
              '<a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a> ',
              $backendAdapter->addToUrl($url),
              specialchars(\sprintf($GLOBALS['TL_LANG'][$table][$type][1], $row['id'])),
              $imageAdapter->getHtml($type.'.svg', \sprintf($GLOBALS['TL_LANG'][$table][$type][1], $row['id']))
          );
      }
code_tokens: private function generatePasteImage ( $ type , $ disabled , $ table , array $ row , array $ clipboard = null ) { /**
           * @var Backend
           * @var Image   $imageAdapter
           */ $ backendAdapter = $ this -> framework -> getAdapter ( Backend :: class ) ; $ imageAdapter = $ this -> framework -> getAdapter ( Image :: class ) ; if ( $ disabled ) { return $ imageAdapter -> getHtml ( $ type . '_.svg' ) . ' ' ; } $ url = \ sprintf ( 'act=%s&amp;mode=%s&amp;pid=%s' , $ clipboard [ 'mode' ] , ( 'pasteafter' === $ type ? 1 : 2 ) , $ row [ 'id' ] ) ; // Add the ID to the URL if the clipboard does not contain any if ( ! \ is_array ( $ clipboard [ 'id' ] ) ) { $ url .= '&amp;id=' . $ clipboard [ 'id' ] ; } return \ sprintf ( '<a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a> ' , $ backendAdapter -> addToUrl ( $ url ) , specialchars ( \ sprintf ( $ GLOBALS [ 'TL_LANG' ] [ $ table ] [ $ type ] [ 1 ] , $ row [ 'id' ] ) ) , $ imageAdapter -> getHtml ( $ type . '.svg' , \ sprintf ( $ GLOBALS [ 'TL_LANG' ] [ $ table ] [ $ type ] [ 1 ] , $ row [ 'id' ] ) ) ) ; }
docstring: Generate the paste image.
  
  @param string     $type
  @param bool       $disabled
  @param string     $table
  @param array      $row
  @param array|null $clipboard
  
  @return string
docstring_tokens: Generate the paste image .