19 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
20 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
21 use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
29 use CompileWithRenderStatic;
36 $this->registerArgument(
'logEntry', LogEntry::class,
'',
true);
54 public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
57 $logEntry = $arguments[
'logEntry'];
58 $detailString = $logEntry->getDetails();
59 $substitutes = $logEntry->getLogData();
61 if ($logEntry->getType() === 2) {
65 if (!empty($substitutes)) {
66 $detailString = vsprintf($detailString, $substitutes);
69 $detailString = str_replace(
'%s',
'', $detailString);
81 foreach ($files as $key => $file) {