SplitButtonItems
Read onlyYes
FinalYes
SplitButtonItems
Type-safe container for split button items.
A split button consists of one primary action button and an array of option buttons shown in a dropdown menu. This DTO ensures type safety and prevents the use of magic array keys.
This is a concrete implementation and not part of the TYPO3 Public API.
Table of Contents
Properties
- $options : array<string|int, mixed>
- $primary : AbstractButton
Methods
- __construct() : mixed
- isValid() : bool
- Checks if the split button has a valid configuration.
Properties
$options
public
array<string|int, mixed>
$options
$primary
public
AbstractButton
$primary
Methods
__construct()
public
__construct(AbstractButton $primary, array<string|int, AbstractButton> $options) : mixed
Parameters
- $primary : AbstractButton
-
The primary action button
- $options : array<string|int, AbstractButton>
-
Array of option buttons for the dropdown
isValid()
Checks if the split button has a valid configuration.
public
isValid() : bool
Return values
bool —True if primary action exists and at least one option is available