‪TYPO3CMS  10.4
InfoModule.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 
24 
29 {
33  public function ‪getIconIdentifier(): string
34  {
35  return 'actions-document-info';
36  }
37 
41  public function ‪getIdentifier(): string
42  {
43  return 'info';
44  }
45 
49  public function ‪getLabel(): string
50  {
51  return $this->‪getLanguageService()->‪sL(
52  'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:module.label'
53  );
54  }
55 
59  public function ‪getShortInfo(): string
60  {
61  $parseTime = $this->‪getTimeTracker()->‪getParseTime();
62  return sprintf($this->‪getLanguageService()->sL(
63  'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:module.shortinfo'
64  ), $parseTime);
65  }
66 
70  protected function ‪getTimeTracker(): ‪TimeTracker
71  {
72  return GeneralUtility::makeInstance(TimeTracker::class);
73  }
74 }
‪TYPO3\CMS\Adminpanel\Modules\InfoModule\getTimeTracker
‪TimeTracker getTimeTracker()
Definition: InfoModule.php:70
‪TYPO3\CMS\Adminpanel\ModuleApi\AbstractModule
Definition: AbstractModule.php:31
‪TYPO3\CMS\Adminpanel\Modules\InfoModule\getIdentifier
‪getIdentifier()
Definition: InfoModule.php:41
‪TYPO3\CMS\Adminpanel\Modules\InfoModule
Definition: InfoModule.php:29
‪TYPO3\CMS\Core\TimeTracker\TimeTracker\getParseTime
‪int getParseTime()
Definition: TimeTracker.php:327
‪TYPO3\CMS\Core\Localization\LanguageService\sL
‪string sL($input)
Definition: LanguageService.php:194
‪TYPO3\CMS\Adminpanel\Modules\InfoModule\getIconIdentifier
‪getIconIdentifier()
Definition: InfoModule.php:33
‪TYPO3\CMS\Adminpanel\ModuleApi\ShortInfoProviderInterface
Definition: ShortInfoProviderInterface.php:30
‪TYPO3\CMS\Adminpanel\Modules\InfoModule\getShortInfo
‪getShortInfo()
Definition: InfoModule.php:59
‪TYPO3\CMS\Adminpanel\Modules\InfoModule\getLabel
‪getLabel()
Definition: InfoModule.php:49
‪TYPO3\CMS\Adminpanel\Modules
Definition: CacheModule.php:18
‪TYPO3\CMS\Adminpanel\ModuleApi\AbstractModule\getLanguageService
‪LanguageService getLanguageService()
Definition: AbstractModule.php:121
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Core\TimeTracker\TimeTracker
Definition: TimeTracker.php:30