‪TYPO3CMS  10.4
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'] = '<span class="formengine-field-item-description text-muted">' . nl2br(htmlspecialchars($fieldInformationText)) . '</span>';
42  }
43  }
44  return $resultArray;
45  }
46 
53  {
54  return ‪$GLOBALS['LANG'];
55  }
56 }
‪TYPO3\CMS\Backend\Form\AbstractNode\initializeResultArray
‪array initializeResultArray()
Definition: AbstractNode.php:90
‪TYPO3\CMS\Backend\Form\FieldInformation\TcaDescription\getLanguageService
‪LanguageService getLanguageService()
Definition: TcaDescription.php:52
‪TYPO3\CMS\Backend\Form\FieldInformation
Definition: AdminIsSystemMaintainer.php:18
‪TYPO3\CMS\Core\Localization\LanguageService\sL
‪string sL($input)
Definition: LanguageService.php:194
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Backend\Form\FieldInformation\TcaDescription
Definition: TcaDescription.php:29
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:42
‪TYPO3\CMS\Backend\Form\AbstractNode
Definition: AbstractNode.php:29
‪TYPO3\CMS\Backend\Form\FieldInformation\TcaDescription\render
‪array render()
Definition: TcaDescription.php:35