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