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

Public Member Functions

 initializeArguments ()

Static Public Member Functions

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

Static Protected Member Functions

static stripPathFromFilenames (array $files=[])

Detailed Description

Create detail string from log entry

Definition at line 32 of file FormatDetailsViewHelper.php.

Member Function Documentation

◆ initializeArguments()

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

Definition at line 36 of file FormatDetailsViewHelper.php.

◆ renderStatic()

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

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

array{logEntry‪LogEntry} $arguments

Definition at line 52 of file FormatDetailsViewHelper.php.

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

◆ stripPathFromFilenames()

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

Strips path from array of file names

Definition at line 68 of file FormatDetailsViewHelper.php.

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

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