‪TYPO3CMS  10.4
TYPO3\CMS\Belog\ViewHelpers\FormatDetailsViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Belog\ViewHelpers\FormatDetailsViewHelper:

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

static string renderStatic (array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Static Protected Member Functions

static array stripPathFromFilenames (array $files=[])
 

Detailed Description

Create detail string from log entry

Definition at line 28 of file FormatDetailsViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Belog\ViewHelpers\FormatDetailsViewHelper::initializeArguments ( )

Initializes the arguments

Definition at line 34 of file FormatDetailsViewHelper.php.

◆ renderStatic()

static string TYPO3\CMS\Belog\ViewHelpers\FormatDetailsViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Create formatted detail string from log row.

The method handles two properties of the model: details and logData Details is a string with possible s placeholders, and logData an array with the substitutions. Furthermore, possible files in logData are stripped to their basename if the action logged was a file action

Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪string Formatted details

Definition at line 54 of file FormatDetailsViewHelper.php.

References TYPO3\CMS\Belog\ViewHelpers\FormatDetailsViewHelper\stripPathFromFilenames().

◆ stripPathFromFilenames()

static array TYPO3\CMS\Belog\ViewHelpers\FormatDetailsViewHelper::stripPathFromFilenames ( array  $files = [])
staticprotected

Strips path from array of file names

Parameters
array$files
Returns
‪array

Definition at line 79 of file FormatDetailsViewHelper.php.

References TYPO3\CMS\Core\Utility\PathUtility\basename().

Referenced by TYPO3\CMS\Belog\ViewHelpers\FormatDetailsViewHelper\renderStatic().