‪TYPO3CMS  11.5
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 {
34  private ‪$title;
35 
39  private ‪$target;
40 
41  public function ‪__construct(string ‪$title, string ‪$target = '')
42  {
43  $this->title = ‪$title;
44  $this->target = ‪$target;
45  }
46 
47  public function ‪getTitle(): string
48  {
49  return ‪$this->title;
50  }
51 
52  public function ‪getLink(): string
53  {
54  return '';
55  }
56 
57  public function ‪getTarget(): string
58  {
59  return ‪$this->target;
60  }
61 
62  public function ‪getElementAttributes(): array
63  {
65  return [];
66  }
67  return [
68  'data-dispatch-action' => 'TYPO3.ModuleMenu.showModule',
69  'data-dispatch-args-list' => 'system_BelogLog,&'
70  . http_build_query(['tx_belog_system_beloglog' => ['constraint' => ['level' => 'notice']]]),
71  ];
72  }
73 }
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getTarget
‪getTarget()
Definition: SysLogButtonProvider.php:55
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider
Definition: SysLogButtonProvider.php:30
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getLink
‪getLink()
Definition: SysLogButtonProvider.php:50
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getTitle
‪getTitle()
Definition: SysLogButtonProvider.php:45
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:43
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\$target
‪string $target
Definition: SysLogButtonProvider.php:37
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\getElementAttributes
‪getElementAttributes()
Definition: SysLogButtonProvider.php:60
‪TYPO3\CMS\Dashboard\Widgets\Provider
Definition: ButtonProvider.php:18
‪TYPO3\CMS\Dashboard\Widgets\ElementAttributesInterface
Definition: ElementAttributesInterface.php:24
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\__construct
‪__construct(string $title, string $target='')
Definition: SysLogButtonProvider.php:39
‪TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface
Definition: ButtonProviderInterface.php:24
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded
‪static bool isLoaded($key)
Definition: ExtensionManagementUtility.php:114
‪TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider\$title
‪string $title
Definition: SysLogButtonProvider.php:33