Skip to content
Snippets Groups Projects
Commit 43ad669f authored by Torben Hansen's avatar Torben Hansen Committed by Benjamin Franzke
Browse files

[TASK] Use CPP in ModifyRecordListTableActionsEvent


With this change, CPP is used in ModifyRecordListTableActionsEvent.

Resolves: #101761
Releases: main
Signed-off-by: default avatarTorben Hansen <derhansen@gmail.com>
Change-Id: I5dfd33b5b6801f9f98d1d488022dab4d87766e73
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80701


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
parent 7d373d2c
Branches
Tags
No related merge requests found
......@@ -25,28 +25,21 @@ use TYPO3\CMS\Backend\RecordList\DatabaseRecordList;
*/
final class ModifyRecordListTableActionsEvent
{
private array $actions;
private string $table;
/**
* @var int[]
*/
private array $recordIds;
private DatabaseRecordList $recordList;
/**
* The label, which will be displayed in case
* no action is available for current the user.
*/
private string $noActionLabel = '';
public function __construct(array $actions, string $table, array $recordIds, DatabaseRecordList $recordList)
{
$this->actions = $actions;
$this->table = $table;
$this->recordIds = $recordIds;
$this->recordList = $recordList;
/**
* @param array<int> $recordIds
*/
public function __construct(
private array $actions,
private readonly string $table,
private readonly array $recordIds,
private readonly DatabaseRecordList $recordList
) {
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment