protected formatTypoScriptPath ( string $typoScriptPath ) : string | ||
$typoScriptPath | string | |
return | string | Multi-line stack trace for the given TypoScript path |
protected function formatTypoScriptPath($typoScriptPath)
{
$pathSegments = array();
$spacer = '';
foreach (explode('/', $typoScriptPath) as $segment) {
$pathSegments[] = $spacer . $segment . '/';
$spacer .= ' ';
}
return htmlentities(implode("\n", $pathSegments));
}