2 namespace TYPO3\CMS\Form\ViewHelpers;
32 public function render($labelContent = null, $content = null, $newLineAfterLabel =
false, $indent = 0)
42 if ($labelContent instanceof \TYPO3\CMS\Form\Domain\Model\
Element) {
43 $output = $this->
getLabel($labelContent);
45 $output = $labelContent;
47 if ($newLineAfterLabel) {
49 $output = str_repeat(chr(32), $spaces) . $output . LF;
56 if (!$newLineAfterLabel) {
61 && !$newLineAfterLabel
63 $output = $output .
': ' . $this->
getValue($content);
70 str_repeat(chr(32), ($spaces + 4)) .
71 str_replace(LF, LF . str_repeat(chr(32), ($spaces + 4)), $this->
getValue($content));
83 && !$newLineAfterLabel
85 $output = str_repeat(chr(32), $spaces) . $output;
102 if ($model->getAdditionalArgument(
'legend')) {
103 $label = $model->getAdditionalArgument(
'legend');
104 }
elseif ($model->getAdditionalArgument(
'label')) {
105 $label = $model->getAdditionalArgument(
'label');
118 if ($content instanceof \TYPO3\CMS\Form\Domain\Model\
Element) {
119 $value = $content->getAdditionalArgument(
'value');
136 $spaces += (int)$indent;