iconFactory = $iconFactory; parent::__construct($backendLayoutView); } /** * {@inheritdoc} */ protected function insertPositionIcon(?array $row, int $colPos, int $pid): string { if (is_array($row)) { $attributes = [ 'data-action' => 'paste', 'data-position' => '-' . $row['uid'], 'data-colpos' => $colPos, ]; } else { $attributes = [ 'data-action' => 'paste', 'data-position' => $pid, 'data-colpos' => $colPos, ]; } $buttonLabelTransUnit = $this->copyMode === 'move' ? 'moveElementToHere' : 'copyElementToHere'; $buttonLabel = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:' . $buttonLabelTransUnit)); return '
'; } /** * Create record header (includes the record icon, record title etc.) * * @param array $row Record row. * @return string HTML */ protected function getRecordHeader(array $row): string { return '
' . $this->iconFactory->getIconForRecord('tt_content', $row, IconSize::SMALL)->render() . ' ' . ($this->moveUid === (int)$row['uid'] ? '' : '') . ' ' . BackendUtility::getRecordTitle('tt_content', $row, true) . ' ' . ($this->moveUid === (int)$row['uid'] ? '' : '') . '
'; } }