33 $sysFileFields = isset($params[
'options'][
'sys_file']) && is_array($params[
'options'][
'sys_file'])
34 ? $params[
'options'][
'sys_file']
37 if (!count($sysFileFields)) {
39 $params[
'title'] = $params[
'row'][
'uid'];
44 $fileRecord = BackendUtility::getRecord($fileInfo[0], $fileInfo[1]);
48 foreach ($sysFileFields as $field) {
50 if ($field ===
'title') {
51 if (isset($params[
'row'][
'title'])) {
52 $fullTitle = $params[
'row'][
'title'];
56 $metaData = $metaDataRepository->findByFileUid($fileRecord[
'uid']);
57 $fullTitle = $metaData[
'title'];
58 }
catch (\
TYPO3\CMS\Core\Resource\
Exception\InvalidUidException $e) {
68 if (isset($params[
'row'][$field])) {
69 $value = htmlspecialchars($params[
'row'][$field]);
70 } elseif (isset($fileRecord[$field])) {
74 if (!strlen($value)) {
78 $title[] =
'<dt>' . htmlspecialchars($labelText) .
'</dt>' .
'<dd>' . $value .
'</dd>';
80 $params[
'title'] =
'<dl>' . implode(
'', $title) .
'</dl>';
static makeInstance($className)
getInlineLabel(array &$params)
static getRecordTitlePrep($title, $titleLength=0)
static translate($key, $extensionName, $arguments=NULL)
static splitTable_Uid($str)