‪TYPO3CMS  ‪main
SysLogButtonProvider.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 
23 
30 {
31  public function ‪__construct(private readonly string $title, private readonly string $target = '') {}
32 
33  public function ‪getTitle(): string
34  {
35  return $this->title;
36  }
37 
38  public function ‪getLink(): string
39  {
40  return '';
41  }
42 
43  public function ‪getTarget(): string
44  {
45  return $this->target;
46  }
47 
48  public function ‪getElementAttributes(): array
49  {
51  return [];
52  }
53  return [
54  'data-dispatch-action' => 'TYPO3.ModuleMenu.showModule',
55  'data-dispatch-args-list' => 'system_BelogLog,&'
56  . http_build_query(['constraint' => ['channel' => 'php']]),
57  ];
58  }
59 }
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getTarget
‪getTarget()
Definition: SysLogButtonProvider.php:43
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider
Definition: SysLogButtonProvider.php:30
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getLink
‪getLink()
Definition: SysLogButtonProvider.php:38
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getTitle
‪getTitle()
Definition: SysLogButtonProvider.php:33
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded
‪static isLoaded(string $key)
Definition: ExtensionManagementUtility.php:55
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:32
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\__construct
‪__construct(private readonly string $title, private readonly string $target='')
Definition: SysLogButtonProvider.php:31
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getElementAttributes
‪getElementAttributes()
Definition: SysLogButtonProvider.php:48
‪TYPO3\CMS\Dashboard\Widgets\Provider
Definition: ButtonProvider.php:18
‪TYPO3\CMS\Dashboard\Widgets\ElementAttributesInterface
Definition: ElementAttributesInterface.php:24
‪TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface
Definition: ButtonProviderInterface.php:24