‪TYPO3CMS  ‪main
TcaDescription.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
29 {
35  public function ‪render(): array
36  {
37  $resultArray = $this->‪initializeResultArray();
38  if (!empty($this->data['parameterArray']['fieldConf']['description'])) {
39  $fieldInformationText = $this->‪getLanguageService()->sL($this->data['parameterArray']['fieldConf']['description']);
40  if (trim($fieldInformationText) !== '') {
41  $resultArray['html'] = '<div class="form-description">' . nl2br(htmlspecialchars($fieldInformationText)) . '</div>';
42  }
43  }
44  return $resultArray;
45  }
46 
48  {
49  return ‪$GLOBALS['LANG'];
50  }
51 }
‪TYPO3\CMS\Backend\Form\FieldInformation
Definition: AdminIsSystemMaintainer.php:18
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\Backend\Form\FieldInformation\TcaDescription
Definition: TcaDescription.php:29
‪TYPO3\CMS\Backend\Form\FieldInformation\TcaDescription\getLanguageService
‪getLanguageService()
Definition: TcaDescription.php:47
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:46
‪TYPO3\CMS\Backend\Form\AbstractNode
Definition: AbstractNode.php:29
‪TYPO3\CMS\Backend\Form\FieldInformation\TcaDescription\render
‪array render()
Definition: TcaDescription.php:35
‪TYPO3\CMS\Backend\Form\AbstractNode\initializeResultArray
‪initializeResultArray()
Definition: AbstractNode.php:77