2 namespace TYPO3\CMS\Core\Resource\Utility;
28 public static function getFlashMessageForMissingFile(\TYPO3\CMS\Core\Resource\
AbstractFile $file)
31 $flashMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class,
32 $GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:warning.file_missing_text') .
33 ' <abbr title="' . htmlspecialchars($file->getStorage()->getName() .
' :: ' . $file->getIdentifier()) .
'">' .
34 htmlspecialchars($file->getName()) .
'</abbr>',
35 $GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:warning.file_missing'),
36 \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR