2 namespace TYPO3\CMS\ContextHelp\Controller;
39 if ($params[
'action'] ===
'getContextHelp') {
40 $result = $this->getContextHelp($params[
'table'], $params[
'field']);
41 $response->
getBody()->write(json_encode([
42 'title' => $result[
'title'],
43 'content' => $result[
'description'],
44 'link' => $result[
'moreInfo']
57 protected function getContextHelp($table, $field)
62 $moreIcon = $helpTextArray[
'moreInfo'] ? $iconFactory->getIcon(
'actions-view-go-forward',
Icon::SIZE_SMALL)->render() :
'';
64 'title' => $helpTextArray[
'title'],
65 'description' =>
'<p class="t3-help-short' . ($moreIcon ?
' tipIsLinked' :
'') .
'">' . $helpTextArray[
'description'] . $moreIcon .
'</p>',
66 'id' => $table .
'.' . $field,
67 'moreInfo' => $helpTextArray[
'moreInfo']