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