‪TYPO3CMS  10.4
AvailableActionsForExtensionEvent.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 {
28  private ‪$packageKey;
29 
33  private ‪$packageData;
34 
38  private ‪$actions;
39 
40  public function ‪__construct(string ‪$packageKey, array ‪$packageData, array ‪$actions)
41  {
42  $this->packageKey = ‪$packageKey;
43  $this->packageData = ‪$packageData;
44  $this->actions = ‪$actions;
45  }
46 
47  public function ‪getPackageKey(): string
48  {
50  }
51 
52  public function ‪getPackageData(): array
53  {
55  }
56 
57  public function ‪getActions(): array
58  {
60  }
61 
62  public function ‪addAction(string $actionKey, string $content): void
63  {
64  $this->actions[$actionKey] = $content;
65  }
66 
67  public function ‪setActions(array ‪$actions): void
68  {
69  $this->actions = ‪$actions;
70  }
71 }
‪TYPO3\CMS\Extensionmanager\Event
Definition: AfterExtensionDatabaseContentHasBeenImportedEvent.php:18
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\addAction
‪addAction(string $actionKey, string $content)
Definition: AvailableActionsForExtensionEvent.php:59
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\__construct
‪__construct(string $packageKey, array $packageData, array $actions)
Definition: AvailableActionsForExtensionEvent.php:37
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\$packageData
‪array $packageData
Definition: AvailableActionsForExtensionEvent.php:31
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\$packageKey
‪string $packageKey
Definition: AvailableActionsForExtensionEvent.php:27
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\getActions
‪getActions()
Definition: AvailableActionsForExtensionEvent.php:54
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent
Definition: AvailableActionsForExtensionEvent.php:24
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\setActions
‪setActions(array $actions)
Definition: AvailableActionsForExtensionEvent.php:64
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\getPackageData
‪getPackageData()
Definition: AvailableActionsForExtensionEvent.php:49
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\$actions
‪string[] $actions
Definition: AvailableActionsForExtensionEvent.php:35
‪TYPO3\CMS\Extensionmanager\Event\AvailableActionsForExtensionEvent\getPackageKey
‪getPackageKey()
Definition: AvailableActionsForExtensionEvent.php:44